Description Usage Arguments Value
Shortcut functions for generating scatterplots from ggplot2
1 | ez_scatter(data, x_num, y_num, z_cat = NULL, color = NULL, shape = NULL)
|
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. |
A plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.