move_legend: Move (or remove) a ggplot2 legend

Description Usage Arguments Examples

View source: R/vis-move-legend.R

Description

A convenience wrapper to move a ggplot2 legend

Usage

1
move_legend(where = "none")

Arguments

where

One of "none", "left", "right", "bottom", "top", or two-element numeric vector (default = "none")

Examples

1
2
3
4
mtcars %>%
ggplot(aes(wt, disp))+
  geom_point(aes(col = mpg))+
  move_legend("left")

cj-holmes/holmesr documentation built on Sept. 20, 2020, 12:44 a.m.