ggbarplot | R Documentation |
Plot
ggbarplot( data, col, orientation = "h", fill = NULL, title = NULL, position = "stack", ... )
data |
a dataset to plot (dataframe) |
col |
column of dataframe to plot (don't quote) |
orientation |
orientation of barplot ("h" / "horizontal" / "v" / "vertical") |
fill |
column of dataframe to color based on (don't quote) |
title |
title of graph (string) |
position |
see ?ggplot2::geom_bar for details (Usually one of: "stack", "dodge", "fill") |
... |
set any other barplot property. See ?ggplot2::geom_bar for details. (e.g. alpha = 0.4) |
ggplot
ggbarplot(iris, Species, fill = Species, orientation = "horizontal", title = "My Freq Graph")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.