plotCompsAsCircles.ByFactor: Plot size/age comps as circles by levels of a factor in a...

View source: R/plotCompsAsCircles.ByFactor.R

plotCompsAsCircles.ByFactorR Documentation

Plot size/age comps as circles by levels of a factor in a dataframe

Description

Function to plot size/age comps as circles by levels of a factor in a dataframe.

Usage

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
)

Arguments

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

Details

calls [plotCompsAsCircles()] to make plot.

Value

value used to scale the circles.


wStockhausen/wtsPlots documentation built on July 19, 2023, 8:15 p.m.