powered by
Configure the chart's legend.
conf_legend(g2, var, ...)leg(var, ...)
leg(var, ...)
An object of class g2r as returned by g2r.
g2r
Bare column name of legend to apply changes to.
Configuration options or a logical indicating whether to show the legend.
# NOT RUN { g <- g2(cars, asp(speed, dist, color = dist)) %>% fig_point() g %>% conf_legend(dist, FALSE) g %>% conf_legend(dist, position = "right") # }
Run the code above in your browser using DataLab