ez_scatter: Shortcut functions for generating scatterplots from ggplot2

Description Usage Arguments Value

View source: R/ez_scatter.R

Description

Shortcut functions for generating scatterplots from ggplot2

Usage

1
ez_scatter(data, x_num, y_num, z_cat = NULL, color = NULL, shape = NULL)

Arguments

x_num

a numeric variable string for the x-axis

y_num

a numeric variable string for the y-axis

z_cat

an optional categorical variable sting for different groups

color

color string for graph. If the scatterplot has two variables the color must be chosen from ggplot2 colors. If the column is three variables the color must be chosen from RcolorBrewer.

shape

if the scatterplot has two variables, input a number corresponding to a point shape in R. If the scatterplot has three variablles, input the catigorical variable string.

Value

A plot


shanealman/EZRplots documentation built on May 13, 2020, 3:29 a.m.