Skip to contents

Make a scatterplot of two numeric variables using ggplot2::ggplot().

Usage

make_scatterplot(var1 = NULL, var2 = NULL, ...)

Arguments

var1

Numeric vector

var2

Numeric vector

...

Optional arguments to be passed to ggplot2::labs() such as title, x or y to define plot title, horizontal axis or vertical axis names, respectively

Examples

data("exampledata")
make_scatterplot(exampledata$x, exampledata$y, title = "My scatterplot")