doJitterplotAmongSubtypes | R Documentation |
Generates stripchart (jitter plot) of a biomarker split on a categorical subtype.
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
)
input.d |
input |
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 |
Expects subtype variable to be a factor. Also, biomarker and subtype variables
have missing cases as NA
.
A jitterplot shown across different subtypes
Samuel Leung
doJitterplotAmongSubtypes(mtcars, "Boxplot of qsec vs. vs", "qsec", "QSEC",
"vs", "VS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.