scatter_express: Create a scatterplot and calculate correlation values for two...

Description Usage Arguments Value Examples

View source: R/ggscatter.R

Description

Creates a ggplot scatterplot object containing two numerical variables. Arguments in the function will control whether correlational values and log transformations are calculated for the input data.

Usage

1
2
3
4
5
6
7
scatter_express(
  df,
  xval = NA,
  yval = NA,
  x_transform = FALSE,
  y_transform = FALSE
)

Arguments

df

Dataframe to plot

xval

x-var Column name used as the x-axis variable

yval

y-var Column name used as the y-axis variable

x_transform

Determines whether the x-axis undergoes a natural log transformation

y_transform

Determines whether the y-axis undergoes a natural log transformation

Value

ggplot Object

Examples

1
scatter_express(iris, Sepal.Width, Sepal.Length)

UBC-MDS/ggexpress documentation built on March 29, 2020, 9:13 p.m.