plot_scatter: scatter graph

View source: R/graphics.R

plot_scatterR Documentation

scatter graph

Description

scatter graph

Usage

plot_scatter(data, label_x = "", label_y = "", colors = NULL)

Arguments

data

data.frame contain x, value, and variable

label_x

x-axis label

label_y

y-axis label

colors

color vector

Value

ggplot graphic

Examples

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)

daltoolbox documentation built on May 29, 2024, 1:57 a.m.