powered by
Create a dot plot based on x, y, and optionally color aspects.
x
y
color
fig_dotplot(g2, ..., count = 500, dot_size = list(1, 1), gap_ratio = 0.1, data = NULL, inherit_asp = TRUE, name = NULL)
An object of class g2r as returned by g2r.
g2r
Any option, aesthetic (asp), or animation (Animation).
asp
Animation
Number of dots to use.
Size of dots.
Gap between dots.
A data.frame containing data to chart or a list.
data.frame
list
Whether to inherit aspects from g2r.
Name of figure, useful to apply functions to specific figures.
# NOT RUN { g2(states, asp(name, value, color = State)) %>% fig_dotplot(asp(shape = "square")) # }
Run the code above in your browser using DataLab