legend: Legend

Description Usage Arguments Examples

Description

Configure the chart's legend.

Usage

1
2
3

Arguments

g2

An object of class g2r as returned by g2r.

var

Bare column name of legend to apply changes to.

...

Configuration options or a logical indicating whether to show the legend.

Examples

1
2
3
4
5
6
g <- g2(cars, asp(speed, dist, color = dist)) %>% 
  fig_point()

g %>% conf_legend(dist, FALSE)

g %>% conf_legend(dist, position = "right")

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.