| orb_bars | R Documentation |
Draws one bar per observation. x may be discrete (a factor or character
column) or continuous. Bars start at zero.
orb_bars(
...,
data = NULL,
width = 0.72,
fill = NULL,
colour = NULL,
alpha = 0.95,
horizontal = FALSE
)
... |
Aesthetic mappings for this layer only, as |
data |
Optional data frame overriding the plot data. |
width |
Bar width as a fraction of the available slot (0-1). |
fill |
Fixed fill used when the |
colour |
Fixed colour used when the |
alpha |
Opacity between 0 and 1. |
horizontal |
Draw horizontal bars. Default |
An object of class orb_layer.
df <- data.frame(g = c("a", "b", "c"), v = c(3, 7, 5))
orb(df, x = g, y = v, fill = g) + orb_bars()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.