bar_plot | R Documentation |
Create bar plot with ggplot2
bar_plot( df, x, y, text = NA, group, fill = NULL, colorbar = NA, rev = FALSE, facet = "none", plot = NA, title = "", xlab = "", ylab = "" )
df |
Dataframe, Dataframe to create plot with |
x |
String, Value to plot on X axis |
y |
String, Value to plot on Y axis |
text |
String, Hover info text |
group |
String, Value to color/group data |
fill |
String, value to fill bars by color |
colorbar |
String, Should default colors be used |
rev |
Boolean, Plot bars in reverse order (alignment sum) for correct colors |
facet |
String, Should data be ordered by group |
plot |
String, Extra condition for ratio plot |
title |
String, Title for plot |
xlab |
String, Label for X axis |
ylab |
String, Label for Y axis |
gg, Plot object (ggplot2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.