multiHist: Creates a stacked histogram (as opposed to side-by-side or...

View source: R/mutliHist.R

multiHistR Documentation

Creates a stacked histogram (as opposed to side-by-side or overlapping) for categorical data

Description

Creates a stacked histogram (as opposed to side-by-side or overlapping) for categorical data

Usage

multiHist(data, y, group, breaks, col = NULL, axisStep = 1,
  xlimit = NULL, logAxis = F, axisLim = NULL, ...)

Arguments

data

is a data.frame or data.table containing the data

y

is the variable to be plotted as a histogram as a quoted name

group

is the quoted name of the grouping variable

breaks

is a vector of breaks for the histogram

col

is an optional specification of the colors to be used in order of unique(group)

axisStep

is the spacing of x-axis labels

Value

A stacked histogram color coded by the provided factor


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