scatter_means_ci | R Documentation |
Computes means by group and plots them in as a scatterplot
scatter_means_ci(
variable1,
variable2,
group,
data,
plot = TRUE,
print = TRUE,
smooth.method = "lm",
drop.groups = NULL
)
group |
Grouping variable |
data |
Data frame |
plot |
Logical. Should the plot be created? |
print |
Logical. Should the result be printed in the console? |
var1 |
Variable to plot on x axis |
var2 |
Variable to plot on y axis |
Recommended to use with 'with' function, as in example.
scatter_means_ci('alcfreq', 'HE', 'cntry', ESS, plot=T, print=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.