make_scatter_plot2 | R Documentation |
Create a scatter plot to examine relationship between two numeric variables within the categories of a categorical variable.
make_scatter_plot2(
data,
num_var1,
num_var2,
grp_var,
trend = "lm",
split = FALSE,
label_fmt = TRUE
)
data |
dataset that contains the variables |
num_var1 |
name of the numeric variable as a string |
num_var2 |
name of the numeric variable as a string |
grp_var |
name of the categorical variable as a string |
trend |
string represents smoothing method to use |
split |
Boolean to indicate whether categories of the grouping variable should be split into individual plot |
label_fmt |
Boolean to indicate whether plot labels should be formatted |
none
make_scatter_plot2(ggplot2::diamonds, "carat", "price", "cut")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.