Skip to contents

Returns a (width, height) (in inches) sized to the per-CS bubble grid so each bubble row has enough vertical space and each outcome panel has enough horizontal space. Mirrors mfsusie_plot_dimensions() for the lfsr companion plot. Use the result for fig.width / fig.height in a knitr chunk so the legend and bubbles do not collide.

Usage

mfsusie_plot_lfsr_dimensions(fit, add_legend = TRUE)

Arguments

fit

an mfsusie / fsusie() fit object that has been post-processed with mf_post_smooth(method = "HMM").

add_legend

logical, whether the lfsr legend strip is shown (matches the corresponding mfsusie_plot_lfsr() arg). Default TRUE.

Value

a list with components width, height (numeric, in inches), cols, rows (integer, the M-grid layout used).