ez.mvi: generic plot a customized boxplot with jittered stripplot,...

View source: R/stats.R

ez.mviR Documentation

generic plot a customized boxplot with jittered stripplot, violin, and mean

Description

generic plot a customized boxplot with jittered stripplot, violin, and mean

Usage

ez.mvi(
  df,
  cmd,
  violin = TRUE,
  colors = ez.palette("Zhu"),
  n.size = 4.5,
  m.size = 4.5,
  alpha = 0.7,
  facet = "cols",
  theme.apa = TRUE
)

Arguments

df

data frame in long format

cmd

like "y", "y|x", "y|x z", "y|x z a" where y is continous, x z a are discrete

violin

plot violin or not

n.size

font size of stat n, 0 to hide

m.size

font size of stat M, 0 to hide

facet

one of 'cols', 'rows', 'wrap'

Value

a ggplot object (+theme_apa() to get apa format plot)


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.