plotBars: Create or add a bar plot.

Description Usage Arguments Details

View source: R/plotBars.R

Description

Function to create or add to a bar plot.

Usage

1
2
3
4
plotBars(y = NULL, x = NULL, w = NULL, df = NULL, xCol = NULL,
  yCol = NULL, xloc = "L", xlabs = NA, overplot = FALSE,
  stack = FALSE, barwidth = 100, groupwidth = 100, barclr = NULL,
  ymin = 0, plotLegend = TRUE, leg.loc = "topright", leg.text = "", ...)

Arguments

y

- matrix of values for bars (group elements as rows, series as columns)

x

- x coordinate for bars (groups) (optional)

w

- bar (group) width (or widths, if a vector) (optional)

df

- dataframe (optional way to specify x, y)

xCol

- column name in df to use as x

yCol

- vector of column names to use as y

xloc

- type of x location specified by x."L" - left cutpoint, "C" - center point, "R" - right cutpoint

overplot

- TRUE to plot bars on last graph

stack

- TRUE to stack bars

barclr

- vector of bar colors by group

ymin

- min y to plot

plotLegend

- TRUE/FALSE flag to plot legend

leg.loc

- location for legend (e.g., "topright")

leg.text

- text labels for legend

bar

width - scale (in percent) to use for bar widths

groupwidths

- scale (in percent) to use for group widths

Details

Uses functions


wStockhausen/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.