plot_bar | R Documentation |
Plot one or more variables as bar chart.
plot_bar(
data,
x,
y,
position = "dodge",
facet_var = NULL,
facet_scale = "free",
facet_nrow = NULL,
facet_ncol = NULL,
color = NULL,
flip = FALSE,
reorder = FALSE,
title = NULL,
subtitle = NULL,
xlab = NULL,
ylab = NULL,
caption = NULL,
bar_size = 0.75,
bar_color = "grey35",
bar_alpha = 1,
theme_set = theme_tscv(),
theme_config = list(),
...
)
data |
A |
x |
Unquoted column within |
y |
Unquoted column within |
position |
Character value. Possible values are |
facet_var |
Unquoted column within |
facet_scale |
Character value defining axis scaling. Possible values are |
facet_nrow |
Integer value. The number of rows. |
facet_ncol |
Integer value. The number of columns. |
color |
Unquoted column within |
flip |
Logical value. If |
reorder |
Logical value. If |
title |
Title of the plot. |
subtitle |
Subtitle of the plot. |
xlab |
Label for the x-axis. |
ylab |
Label for the y-axis. |
caption |
Caption of the plot. |
bar_size |
Numeric value defining the line width. |
bar_color |
Character value defining the line color (ignored if |
bar_alpha |
Numeric value defining the transparency of the line. |
theme_set |
A complete ggplot2 theme. |
theme_config |
A list with further arguments passed to |
... |
Currently not in use. |
p An object of class ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.