legend_positioning: Set legend position

Description Usage Arguments Examples

View source: R/legend_positioning.R

Description

A wrapper function to make setting legend position easier when using ggplot.

Usage

1
legend_positioning(pos, edge_color = "black", legend_fill = "white")

Arguments

pos

Legend position as a two-element vector

edge_color

Legend edge color, defaults to black

legend_fill

Legend fill color, defaults to white

Examples

1
2
last_plot() + legend_positioning(c(0,1)) #put legend in upper left corner
last_plot() + legend_positioning(c(1,0)) #put legend in lower right corner

dmirman-zz/gazer documentation built on Nov. 11, 2019, 12:12 a.m.