viz_scatter: Generate a scatterplot

Description Usage Arguments Examples

View source: R/viz_scatter.R

Description

Explore the distribution of your data with a scatterplot This function generates a ggplot2 object, so it's easily expanded with labels, themes, and other elements.

Usage

1
viz_scatter(data, xvar, yvar)

Arguments

data

data.frame

xvar

variable

yvar

variable

Examples

1
2
3
4
x <- c(1,2,3,4,5)
y <-  rnorm(5, x, 0.5)
my_data <- data.frame(x = x, y = y)
viz_scatter(my_data, x, y)

ideas42/tools42 documentation built on Jan. 31, 2021, 7:23 p.m.