barplot_stratum: barplot a binary variable into different strata

Description Usage Arguments Value Author(s)

Description

Make a barplot of a binary variable, stratified by a certain function, like which.percentile, or which.quantile.

Usage

1
  barplot_stratum(binary, strata, proportion = TRUE, ...)

Arguments

binary

a boolean vector

strata

an additional vector that describes which strata each point came from, such as which percentile. see which.percentile

proportion

logical: y-axis as a proportion? Recommended to be TRUE

...

arguments passed to barplot

Value

none. makes a plot

Author(s)

Mark Cowley, 2008-12-22


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.