Description Usage Arguments Value Examples
Potential geometries according to the data
1 | potential_geoms(data, mapping, auto = FALSE)
|
data |
A |
mapping |
List of aesthetic mappings to use with data. |
auto |
Return only one geometry. |
A character
vector
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(ggplot2)
# One continuous variable
potential_geoms(
data = iris,
mapping = aes(x = Sepal.Length)
)
# Automatic pick a geom
potential_geoms(
data = iris,
mapping = aes(x = Sepal.Length),
auto = TRUE
)
# One discrete variable
potential_geoms(
data = iris,
mapping = aes(x = Species)
)
# Two continuous variables
potential_geoms(
data = iris,
mapping = aes(x = Sepal.Length, y = Sepal.Width)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.