subject: Subject

Description Usage Arguments Examples

View source: R/axis.R

Description

Add a subject to the plot.

Usage

1
subject(g, subject, tag = htmltools::h3)

Arguments

g

An object of class g2r or g2Proxy as returned by g2() or g2_proxy().

subject

Subject of chart to display.

tag

htmltools tag function to use.

Examples

1
2
3
g2(cars, asp(speed, dist)) %>% 
 fig_point() %>% 
 subject("Points")

devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.