View source: R/Prism_scatter.R
Prism_scatter | R Documentation |
This function replicates prism-like scatter plots with a bar-graph and a scatterplot with SEM values. It requires discrete x, but can use interaction of multiple values to set x. Default is to colour value #1 black, and all else blue. output is a ggplot object that can be further modified.
Prism_scatter(data, xval, yval, facet, color_var, shape, ncolors, nbreaks, ...)
data |
input dataset |
xval |
main x-value (can be interaction of two factors) |
yval |
y-values (continuous data) |
facet |
factor to facet data |
shape |
factor to set shape of scatterplot |
color |
factor to set colors |
ncolor |
number of colors to include (must match ) |
p <- Prism_scatter(data, x = interaction(treatment,stage), y = odr10GFP, color = Dev_experience, shape = treatment, facet = Dev_experience, ncolors = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.