Move_Legend {scCustomize} | R Documentation |
Move Legend Position
Description
Shortcut for thematic modification to move legend position.
Usage
Move_Legend(position = "right", ...)
Arguments
position |
valid position to move legend. Default is "right". |
... |
extra arguments passed to |
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")
[Package scCustomize version 2.1.2 Index]