catPropPlot: Creates a color-coded proportion plot good for variables that...

View source: R/catPropPlot.R

catPropPlotR Documentation

Creates a color-coded proportion plot good for variables that can be sequentially cumulative (e.g., substrate bigger than x, bigger than x+x1,...)

Description

Creates a color-coded proportion plot good for variables that can be sequentially cumulative (e.g., substrate bigger than x, bigger than x+x1,...)

Usage

catPropPlot(cat, prop, time, catOrder, col = gray(seq(0, 1, length.out =
  length(catOrder))), ...)

Arguments

cat

Categorical data to be plotted (categories for y-variable)

prop

Proprortional data (y-variable)

time

Time variable (x-variable)

catOrder

Order of the categorical variables as a vector in the correct order

col

Colors for categories. Should be the same length as length(cat). Defaults to a gray-scale.

Value

A plot of proportional data over time


evanchildress/plotHacks documentation built on July 29, 2022, 5 a.m.