plot_scatter | R Documentation |
scatter graph
plot_scatter(data, label_x = "", label_y = "", colors = NULL)
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
colors |
color vector |
ggplot graphic
grf <- plot_scatter(iris |> dplyr::select(x = Sepal.Length,
value = Sepal.Width, variable = Species),
label_x = "Sepal.Length", label_y = "Sepal.Width",
colors=c("red", "green", "blue"))
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.