plot_scatter {daltoolbox}R 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)

[Package daltoolbox version 1.0.767 Index]