Use ggplot2 graphics to plot and customize the appearance of VPC.
# S3 method for tidyvpcobj
plot(
x,
facet = FALSE,
show.points = TRUE,
show.boundaries = TRUE,
show.stats = !is.null(x$stats),
show.binning = isFALSE(show.stats),
xlab = NULL,
ylab = NULL,
color = c("red", "blue", "red"),
linetype = c("dotted", "solid", "dashed"),
point.alpha = 0.4,
point.size = 1,
point.shape = "circle-fill",
point.stroke = 1,
ribbon.alpha = 0.1,
legend.position = "top",
facet.scales = "free",
custom.theme = NULL,
censoring.type = c("none", "both", "blq", "alq"),
censoring.output = c("grid", "list"),
...
)
A tidyvpcobj
.
Set to TRUE
to facet plot by quantile (continuous VPC) or
category (categorical VPC).
Should the observed data points be plotted?
Should the bin boundary be displayed?
Should the VPC stats be displayed?
Should the binning be displayed by coloring the observed data points by bin?
A character label for the x-axis.
A character label for the y-axis.
A character vector of colors for the percentiles, from low to high.
A character vector of line type for the percentiles, from low to high.
Numeric value specifying transparency of points.
Numeric value specifying size of point.
Character one of "circle", "circle-fill", "diamond", "diamond-fill",
"square", "square-fill", "triangle-fill" , "triangle")
. Defaults to "circle-fill"
.
Numeric value specifying size of point stroke.
Numeric value specifying transparency of ribbon.
A character string specifying the position of the legend. Options are
"top", "bottom", "left", "right"
.
A character string specifying the scales
argument to use for faceting. Options
are "free", "fixed"
.
A custom ggplot2 theme supplied either as a character string, function, or object of class "theme"
.
A character string specifying additional blq/alq plots to include. Only applicable if
censoring
was performed.
A character string specifying whether to return percentage of blq/alq plots as an
arranged "grid"
or as elements in a "list"
. Only applicable if censoring.type != "none"
.
Additional arguments for ggarrange
e.g., ncol
and nrow
.
Only used if censoring.type != "none"
and censoring.output == "grid"
.
A ggplot
object.
ggplot