Description Usage Arguments Value Author(s) Examples
View source: R/stackedBarPlot.R
Draw stacked bar plots.
1 2 3 4 5 6 7 8 9 10 |
dat |
A data frame object. Rows are subjects and columns are variables. |
catVar |
character. The name of the cateogrical variable to be shown in x-axis. |
group |
character. The name of variable indicating groups of subjects. |
xlab |
character. Label for x-axis. |
ylab |
character. Label for y-axis. |
group.lab |
character. Label for group in legend. |
title |
character. Figure title. |
catVarLevel |
character. A vector indicating the order of the unique elements of |
groupLevel |
character. A vector indicating the order of the unique elements of |
addThemeFlag |
logical. Indicates if light blue background and white grid should be added to the figure. |
A list of the following 9 elements: “data”, “layers”, “scales”, “mapping”, “theme”, “coordinates”, “facet”, “plot_env”, “labels”.
Wenfei Zhang <Wenfei.Zhang@sanofi.com>, Weiliang Qiu <Weiliang.Qiu@sanofi.com>, Xuan Lin <Xuan.Lin@sanofi.com>, Donghui Zhang <Donghui.Zhang@sanofi.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.