data2shape | R Documentation |
Allows a data.frame or tibble to be converted to shape objects.
data2shape(data, shape)
data |
data.frame or tibble |
shape |
shape function |
shape object
d <- data.frame(
x = 1:2,
y = 1:2,
fill = c("blue", "forestgreen"),
color = NA,
radius = c(.25,0.5))
ggdiagram() +
data2shape(d, ob_circle)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.