View source: R/plotCompsAsCircles.ByFactor.R
plotCompsAsCircles.ByFactor | R Documentation |
Function to plot size/age comps as circles by levels of a factor in a dataframe.
plotCompsAsCircles.ByFactor(
dfr = NULL,
factor.name = NULL,
factor.levels = NULL,
zcol = "z",
xcol = "year",
ycol = "size",
transform = TRUE,
overplot = FALSE,
maxRadius = 0.5,
scale = NULL,
xjit = 0,
fg = c("black", "grey"),
bg = c("blue", "green"),
lty = c("solid", "dotted"),
transparency = 0.5,
plotCohorts = FALSE,
units = "data units",
main = NA,
subtitle = "",
xlims = NULL,
ylims = NULL,
xlab = "",
ylab = "",
xaxt = TRUE,
yaxt = TRUE,
debug = FALSE
)
dfr |
: dataframe with columns xcol, ycol, zcols |
factor.name |
: |
factor.levels |
: |
zcol |
: dfr column name with values to plot as circles |
xcol |
: dfr column name with x-axis positions |
ycol |
: dfr column name with y-axis positions |
transform |
: flag (T/F) to scale circle size by area rather than diameter |
overplot |
: flag to draw on an existing plot |
maxRadius |
: max radius for circles (axis?) |
scale |
: overall scale factor |
xjit |
: jitter applied to x-axis positions |
fg |
: foreground color for circles |
bg |
: background color for circles |
lty |
: line type for circles |
transparency |
: alpha (0-1) transparency for circles |
plotCohorts |
: flag (T/F) to plot cohorts |
units |
: text to display as units |
main |
: plot title |
subtitle |
: plot subtitle |
xlims |
: x-axis limits |
ylims |
: y-axis limits |
xlab |
: x-axis label |
ylab |
: y-axis label |
xaxt |
: |
yaxt |
: flag (T/F) |
debug |
: flag to print debugging info |
calls [plotCompsAsCircles()] to make plot.
value used to scale the circles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.