Description Usage Arguments Details Examples
Iterate a graphic
1 |
data |
a data table or, more usually, an expression that produces
a data table, e.g. |
It makes sense to use this only for graphics that do a substantial calculation on the data.
1 2 3 4 5 6 7 8 9 | gf_do(wage ~ sector + color:sex + alpha:.1, gf_boxplot,
data = mosaic::resample(CPS85), ntrials = 10)
gf_do(~ wage + color:sex + alpha:.05, gf_freqpoly,
data = mosaic::resample(CPS85), ntrials = 10)
gf_do(wage ~ sex + alpha:.05, gf_violin,
data = mosaic::resample(CPS85), ntrials = 10)
gf_do(~ wage + fill:sex + alpha:.05, gf_histogram,
data = mosaic::resample(CPS85), ntrials = 50) %>%
gf_facet_wrap(~sex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.