legend_enr: E&R legend - put legend inside a plot.

Description Usage Arguments Examples

Description

E&R legend - put legend inside a plot.

Usage

1
legend_enr(geom = "bar", ...)

Arguments

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.

Examples

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)

pearsonplc/vispear documentation built on May 30, 2019, 3:45 p.m.