Learn R Programming

pophelper (version 2.2.9)

getDim: Internal: Get dimensions for figures.

Description

Internal: Generate height and width of figure based on number of individuals.

Usage

getDim(ind = NA, units = NA, height = NA, width = NA, dpi = NA,
  imgtype = NA, grplabheight = NA, labs = NA, plotnum = NA,
  showindlab = FALSE, sharedindlab = TRUE)

Arguments

ind

A numeric indicating the number of individuals.

units

A character indicating the unit of dimension: "cm","mm","in".

height

A numeric indicating the height of each plot.

width

A numeric indicating the width of each plot.

dpi

A numeric indicating the resolution of the figure.

imgtype

A character denoting image format. "png", "jpeg" or "pdf".

grplabheight

A numeric denoting the height of the label panel.

labs

An integer denoting number of label groups.

plotnum

A numeric indicating the number of plots in the figure.

showindlab

A logical indicating of indlab is displayed.

sharedindlab

A logical indicating if shared indlab is in use.

Value

a vector with height and width.