Prism_scatter: Prism_scatter

View source: R/Prism_scatter.R

Prism_scatterR Documentation

Prism_scatter

Description

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.

Usage

Prism_scatter(data, xval, yval, facet, color_var, shape, ncolors, nbreaks, ...)

Arguments

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 )

Examples

p <- Prism_scatter(data, x = interaction(treatment,stage), y = odr10GFP, color = Dev_experience, shape = treatment, facet = Dev_experience, ncolors = 2)

SenguptaLab/MF.matR documentation built on Feb. 5, 2023, 4:57 p.m.