variance_vis | R Documentation |
This function is adapted from Bruce Dudek's Shiny app available here: https://shiny.rit.albany.edu/stat/visualizess/
variance_vis(
x,
plot_mean = TRUE,
plot_deviances = TRUE,
plot_deviances_x = FALSE,
plot_deviances_y = FALSE,
plot_population_variance = TRUE,
plot_sample_variance = FALSE,
plot_population_sd = FALSE,
plot_sample_sd = FALSE,
point_size = 3,
variance_position = "top",
deviation_col = "blue",
sample_variance_col = "green",
population_variance_col = "orange",
sample_sd_col = "darkgreen",
population_sd_col = "darkorange",
sd_size = 1.5,
xlab = "",
...
)
x |
a vector of values to display the variance of. |
plot_mean |
whether to plot the mean. |
plot_deviances , plot_deviances_x , plot_deviances_y |
either a logical (TRUE to include all cross
products) or an integer vector indicating which cross products from
|
plot_population_variance |
whether to plot the population variance. |
plot_sample_variance |
whether to plot the sample variance. |
plot_population_sd |
whether to plot the population standard deviation. |
plot_sample_sd |
whether to plot the sample standard deviation. |
point_size |
the size of points. |
variance_position |
where to plot the sample and/or population variances. Values can be 'top', 'bottom', or 'middle'. |
deviation_col |
color of the deviations. |
sample_variance_col |
color of the sample variance. |
population_variance_col |
color of the population variance. |
sample_sd_col |
color of the sample standard deviation. |
population_sd_col |
color of the population standard deviation. |
sd_size |
size of the standard deviation error bars. |
xlab |
label for the x-axis. |
... |
currently not used. |
a ggplot2 expression.
Jason Bryer
Bruce Dudek
x <- c(97.88, 107.91, 88.26, 115.21, 87.38)
variance_vis(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.