plotCompsAsCircles.dataframe: Plot size/age comps in a dataframe as circles

View source: R/plotCompsAsCircles.dataframe.R

plotCompsAsCircles.dataframeR Documentation

Plot size/age comps in a dataframe as circles

Description

Function to plot size/age comps in a dataframe as circles.

Usage

plotCompsAsCircles.dataframe(
  dfr,
  zcols = "z",
  xcol = "x",
  ycol = "y",
  hasCutPts = TRUE,
  transform = TRUE,
  overplot = FALSE,
  maxRadius = 0.5,
  scale = NULL,
  xjit = 0,
  fg = "black",
  bg = "blue",
  lty = "solid",
  transparency = 0.5,
  plotCohorts = FALSE,
  units = "data units",
  main = NA,
  subtitle = "",
  xlims = NULL,
  ylims = NULL,
  xlab = "years",
  ylab = "size",
  xaxt = NULL,
  yaxt = TRUE,
  debug = FALSE
)

Arguments

dfr

: dataframe with columns xcol, ycol, zcols

zcols

: dfr column names with values to plot as circles

xcol

: dfr column name with x-axis positions

ycol

: dfr column name with y-axis positions

hasCutPts

: flag indicating whether y-axis positions are cut points

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.