plot_scatter: Scatter plot between two numerical columns of a data frame

Description Usage Arguments Value Examples

View source: R/plot_scatter.R

Description

Scatter plot between two numerical columns of a data frame

Usage

1
plot_scatter(.data, .num1, .num2, .by = NULL)

Arguments

.data

a data frame

.num1

unquoted name of numercial column for x-axis

.num2

unquoted name of numercial column for y-axis

.by

default NULL. Unqoted name of categorical column to color points by groups

Value

a ggplot

Examples

1
2
3
4
5
# With .by = NULL
plot_scatter(iris, Sepal.Length, Sepal.Width)

# With color by groups
plot_scatter(iris, Sepal.Length, Sepal.Width, .by = Species)

BenjaminLouis/datascan documentation built on May 26, 2019, 1:35 p.m.