Description Usage Arguments Value Examples
Draw a static bidirectional bar plot
1 2 |
data |
A data.frame |
left |
A character vector of column names be assigned to left-sided bar |
right |
A character vector of column names be assigned to right-sided bar |
label |
A character vector of column names be assigned to the label |
width |
An integer vector specifying the relative width of two barplots. |
A static bidirectional bar plot
1 2 3 4 | require(grid)
require(ggplot2)
KS2016=get_popdata("KS",2016)
ggBidirectionalBar2(data=KS2016,left="Male",right="Female",label="Age")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.