gf_stat | R Documentation |
Creates a graphics layer displaying a point or interval statistic (as
from dfstats
).
gf_stat(object, formula, data = NULL, stat = NULL, geom = gf_errorbar, ...)
object |
When chaining, this holds an object produced in the earlier portions of the chain. Most users can safely ignore this argument. See details and examples. |
formula |
A formula as with |
data |
A data frame |
stat |
A single statistic to be display, e.g., mean, ci.mean, median, ... |
... |
statistics to calculate (as with |
gf_jitter(price ~ cut, data = tail(diamonds,1000), alpha = 0.1) %>% gf_stat(price ~ cut, stat = ci.mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.