draw_key_arrow | R Documentation |
Like any legend key glyphs, this key can be used to display arrows in a legend.
draw_key_arrow(data, params, size)
data |
A single row data frame containing the scaled aesthetics to display in this key |
params |
A list of additional parameters supplied to the geom. |
size |
Width and height of key in mm. |
An <arrow_path>
grob
ggplot(mpg, aes(displ, colour = factor(cyl))) +
geom_density(key_glyph = draw_key_arrow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.