doJitterplotAmongSubtypes: Do a jitterplot among subtypes

View source: R/plot_do.R

doJitterplotAmongSubtypesR Documentation

Do a jitterplot among subtypes

Description

Generates stripchart (jitter plot) of a biomarker split on a categorical subtype.

Usage

doJitterplotAmongSubtypes(
  input.d,
  data.description,
  biomarker.var.name,
  biomarker.name,
  subtype.var.name,
  subtype.name,
  pch = ".",
  jitter = 0.05,
  digits = 3,
  cex.axis = 0.9
)

Arguments

input.d

input data.frame

data.description

title description

biomarker.var.name

variable name of biomarker to plot

biomarker.name

x-axis label for biomarker name

subtype.var.name

variable name of subtype to separate biomarker

subtype.name

y-axis label for subtype name

pch

jitterplot dot type. For example, 20 = small dot, 16 = big dot.

jitter

scalar indicating amount of jitter (spread of points)

digits

number of digits to round to

cex.axis

scalar indicating amount of scaling for axes

Details

Expects subtype variable to be a factor. Also, biomarker and subtype variables have missing cases as NA.

Value

A jitterplot shown across different subtypes

Author(s)

Samuel Leung

Examples

doJitterplotAmongSubtypes(mtcars, "Boxplot of qsec vs. vs", "qsec", "QSEC",
"vs", "VS")

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.