ggBarPlot | R Documentation |
The error bar represents mean and SEM.
ggBarPlot(
df,
x,
y,
fill,
shape = NULL,
facet = NULL,
colors = NULL,
shapes = NULL,
ylab = "Y",
yscale = "continuous",
facet_type = "wrap",
facet_scales = "free_y",
facet_space = "fixed",
facet_ncol = NULL,
facet_nrow = NULL
)
df |
A data.frame of plot data. |
x |
A string of the column name for x. |
y |
A string of the column name for y. |
fill |
A string of the column name for fill. |
shape |
(Optional) A string of the column name for shape. |
facet |
(Optional) A string or a pair of strings of the column name(s) for facet. |
colors |
(Optional) A vector of colors. |
shapes |
(Optional) A vector of point shapes. E.g., 21:25 |
ylab |
A string for y-axis label. |
yscale |
The y-axis scale. Can be either "continuous" or "log10". |
facet_type |
The facetting type. Can be either "wrap" or "grid". |
facet_scales |
The facetting scales. |
facet_space |
The spacing scheme in the facetting grid. |
facet_ncol |
Number of columns. |
facet_nrow |
Number of rows. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.