plotStackedBar: plotStackedBar

Description Usage Arguments Value Author(s) See Also

View source: R/visualization.R

Description

plotStackedBar Renders a stacked bar plot and a contingency table showing frequencies and proportions

Usage

1
plotStackedBar(data, yLab, xLab, plotTitle = NULL, lgnd = "bottom")

Arguments

data

Data frame containing the variables:

  • x Character string containing the values along the x-axis

  • Category Character string containing a categorical level

  • N: The number of observations for the categorical level

  • Proportion: The proportion of observation for the categorical level

  • Cumulative: The cumulative proportion

  • Pos: The y position for the frequency and proportion text

yLab

Capital case character string describing the y variable

xLab

Capital case character string containing the name of the variable x variable

plotTitle

Capital case character string for the title of the plot

lgnd

Character string indicating position of the legend c("right", "bottom")

Value

List containing a contingency table and a stacked bar plot.

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other visualization functions: groupBarPlot, pieChart, plotBar2, plotBar, plotBox, plotCIBars, plotCorr, plotFreqProp, plotHist, plotLine, plotQQ, plotResFit, plotResQQ, plotScatter


DataScienceSalon/Bayesian-Regression documentation built on May 29, 2019, 12:06 a.m.