Allows a data.frame or tibble to be converted to shape objects.
Examples
d <- data.frame(
x = 1:2,
y = 1:2,
fill = c("blue", "forestgreen"),
radius = c(.25,0.5))
ggdiagram() +
data2shape(d, ob_circle)
Allows a data.frame or tibble to be converted to shape objects.
d <- data.frame(
x = 1:2,
y = 1:2,
fill = c("blue", "forestgreen"),
radius = c(.25,0.5))
ggdiagram() +
data2shape(d, ob_circle)