graphs a given set of data
1 2 3 4 5 6 7 8 9 | graph_my_data(x, y, color, ind_var, dep_var, title, data)
## S3 method for class 'numeric'
graph_my_data(x, y, color, ind_var, dep_var, title,
data = NULL)
## S3 method for class 'data.frame'
graph_my_data(x = NULL, y = NULL, color, ind_var,
dep_var, title, data)
|
x |
a numeric vector |
y |
a numeric vector |
color |
a string; must be a color recognized by ggplot |
ind_var |
a string of the variable name to be assessed; if using |
dep_var |
a string of the variable name to be assessed; if using |
title |
a string |
data |
default value is NULL, so that if manually entering data as x and y vectors this is not involved |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.