ith_stat_is | R Documentation |
ith_stat_is
checks whether the ith layer uses the prescribed type of stat
ith_stat_is(p, stat, i = 1)
p |
A ggplot object |
stat |
A character string that corresponds to
the suffix of a ggplot2 |
i |
A numerical index that corresponds to the first layer of a plot (1),
the second layer (2), and so on. |
TRUE
or FALSE
Other functions for checking stats:
get_stats()
,
ith_stat()
,
uses_stats()
require(ggplot2)
p <- ggplot(data = diamonds, aes(sample = price)) +
geom_qq()
ith_stat_is(p, i = 1, "qq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.