R/plot-failure-modes.R
geom_jitter_failure_mode.Rd
The geom_jitter_failure_mode
is very similar to
ggplot2::geom_jitter()
except that a failure mode variable specified
as the color and/or shape aesthetic is parsed to separate multiple
failure modes and plot them separately. For example, if an observation
has the failure mode "LAT/LAB", two points will be plotted, one with the
failure mode "LAT" and the second with the failure mode "LAB".
geom_jitter_failure_mode(
mapping = NULL,
data = NULL,
stat = "identity",
position = "jitter",
...,
width = NULL,
height = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
sep = "[/, ]+"
)
Set of aesthetic mapping created by aes()
.
See ggplot2::geom_jitter()
for additional details.
The data to be displayed by this layer.
See ggplot2::geom_jitter()
for additional details.
The statistical transformation to use on the data for this layer.
See ggplot2::geom_jitter()
for additional details.
A position adjustment to use on the data for this layer.
See ggplot2::geom_jitter()
for additional details.
Other arguments passed on to layer()
's params
argument.
See ggplot2::geom_jitter()
for additional details.
The amount of horizontal jitter.
See ggplot2::geom_jitter()
for additional details.
The amount of vertical jitter.
See ggplot2::geom_jitter()
for additional details.
If FALSE, the default, missing values are removed with warning.
See ggplot2::geom_jitter()
for additional details.
NA
, the default, indicates that nay aesthetics are
mapped.
See ggplot2::geom_jitter()
for additional details.
if FALSE, overrides the default aesthetics.
See ggplot2::geom_jitter()
for additional details.
A regular expression indicating the character(s) separating
multiple failure modes. By default "[/, ]+"
The variable specified for the aesthetics shape
and color
are passed
to the function separate_failure_modes()
to parse the failure modes and
separate multiple failure modes separated by character(s) specified in
the regular expression given in the parameter sep
. By default, multiple
failure modes are expected to be separated by spaces, commas or forward
slashes, but this can be overridden.
If both shape
and color
aesthetics are specified, both must be identical.