Shortcut for thematic modification to move legend position.

Move_Legend(position = "right", ...)

Arguments

position

valid position to move legend. Default is "right".

...

extra arguments passed to ggplot2::theme().

Value

Returns a list-like object of class theme.

Examples

# Generate a plot and customize theme
library(ggplot2)
df <- data.frame(x = rnorm(n = 100, mean = 20, sd = 2), y = rbinom(n = 100, size = 100, prob = 0.2))
p <- ggplot(data = df, mapping = aes(x = x, y = y)) + geom_point(mapping = aes(color = 'red'))
p + Move_Legend("left")