ggJitterPlot: Jitter plot with error bars.

View source: R/ggJitterPlot.R

ggJitterPlotR Documentation

Jitter plot with error bars.

Description

The error bar represents mean and SEM.

Usage

ggJitterPlot(
  df,
  x,
  y,
  fill,
  shape = NULL,
  facet = NULL,
  colors = NULL,
  shapes = NULL,
  add.violin = "auto",
  minN.violin = 10,
  ylab = "Y",
  yscale = "continuous",
  yscale.expand = F,
  facet_type = "wrap",
  facet_scales = "free_y",
  facet_space = "fixed",
  facet_ncol = NULL,
  facet_nrow = NULL
)

Arguments

df

A data.frame of plot data.

x

A string of the column name for x.

y

A string of the column name for y.

fill

A string of the column name for fill.

shape

(Optional) A string of the column name for shape.

facet

(Optional) A string or a pair of strings of the column name(s) for facet.

colors

(Optional) A vector of colors.

shapes

(Optional) A vector of point shapes. E.g., 21:25

add.violin

Logical. Whether a violin layer should be added. Default is "auto", in which case violin is generated when the maximal number of samples in a specific group >= minN.violin.

minN.violin

An integer. The minimum number of data points required to add a violin layer.

ylab

A string for y-axis label.

yscale

The y-axis scale. Can be either "continuous" or "log10".

yscale.expand

Logical. Whether the y-scale should be expanded down to zero.

facet_type

The facetting type. Can be either "wrap" or "grid".

facet_scales

The facetting scales.

facet_space

The spacing scheme in the facetting grid.

facet_ncol

Number of columns.

facet_nrow

Number of rows.


masato-ogishi/plotUtility documentation built on July 27, 2023, 11:37 a.m.