Add a subject to the plot.
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
g2(cars, asp(speed, dist)) %>%
fig_point() %>%
subject("Points")