Description Usage Arguments Examples
E&R legend - put legend inside a plot.
1 | legend_enr(geom = "bar", ...)
|
geom |
Name of used geom. Default value: bar. |
... |
arguments listed below: |
direction |
direction of the legend. Either h (horizontal) or v (vertical). |
direction_box |
direction of the box of legend. Specifically it is useful when the plot has more than one legend. Default value: v. |
position |
position of the legend - two-element numeric vector. |
bc |
- background color. Default value: #FFFFFF. |
bc_alpha |
- opacity of background color. Default value: 0. |
bc_border |
- color of border of legend border. Default value: transparent. |
lo_size |
size of legend objects. Default value for geom_point: 8, for geom_line: 1.2 |
lo_alpha |
opacity of legend objects. Default value: 1 |
lo_nrow |
number of rows in which categories should show up. |
1 2 3 4 5 6 7 | ## Not run:
ggplot(mtcars, aes(qsec, mpg, color = factor(cyl))) +
geom_point() +
theme_enr() +
legend_enr("point")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.