Description Usage Arguments Value Author(s) Examples
Bar plot
1 2 3 4 5 6 7 8 9 10 11 12 13 |
df |
A data frame. |
x |
A character, specifying the x-axis. |
y |
A character, specifying the y-axis. |
fill |
A character, specifying the fill color. |
bar.width |
A numeric, specifying the width of bar. |
position |
"dodge" (default), "stack", "fill". |
dodge.width |
A numeric, set the width in position_dodge. |
main |
A charater, specifying the figure title. |
xlab |
A character, specifying the title of x-axis. |
ylab |
A character, specifying the title of y-axis. |
... |
Other parameters in geom_bar |
An object created by ggplot
, which can be assigned and further customized.
Wubing Zhang
1 2 | mdata = data.frame(group=letters[1:5], count=sample(1:100,5))
BarView(mdata, x = "group", y = "count")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.