Calculate plot height for different page widths and number of subplots

calcualtePlotHeight(plotData, pageWidth, facetVars)

Arguments

plotData

A dataframe of data used in plot

pageWidth

Width of page in pixels

facetVars

A character vector with names of facet variables