| plot_points | R Documentation |
Dot chart for multiple series across categories (points only).
plot_points(data, label_x = "", label_y = "", colors = NULL)
data |
data.frame with category + one or more numeric columns |
label_x |
x‑axis label |
label_y |
y‑axis label |
colors |
optional color vector for series |
Expects a data.frame with category in the first column and one or more numeric series.
Points are colored by series (legend shows original column names). Supply colors to override the palette.
returns a ggplot2::ggplot graphic
x <- seq(0, 10, 0.25)
data <- data.frame(x, sin=sin(x), cosine=cos(x)+5)
head(data)
grf <- plot_points(data, colors=c("red", "green"))
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.