Learn R Programming

pophelper (version 2.2.9)

getPlotParams: Internal: Generate parameters for plots with labels

Description

Internal: Generates various parameters required for plotting with labels.

Usage

getPlotParams(grplab = NA, plotnum = 1, grplabsize = NA,
  grplabangle = NA, grplabjust = NA, pointsize = NA, linesize = NA)

Arguments

grplab

A character vector of labels same length as number of individuals.

plotnum

A numeric indicating the number of plots on the figure.

grplabsize

A numeric indicating the size of the labels.

grplabangle

A numeric indicating the angle/rotation of labels. 0 is horizontal while 90 is vertical.

grplabjust

A numeric indicating the justification of labels. Defaults to 0.5 if grplabangle=0 or 1 if grplabangle between 20 and 135.

pointsize

A numeric indicating the size of points on label marker line.

linesize

A numeric indicating the thickness of the label marker line.

Value

A list with following plot parameters: grplab, plotnum, grplabsize, grplabangle, grplabjust, pointsize, linesize.