plot.triptych {triptych} | R Documentation |
Plot methods for the triptych classes
Description
Plot methods for the triptych classes
Usage
## S3 method for class 'triptych'
plot(x, ...)
## S3 method for class 'triptych'
autoplot(object, ...)
## S3 method for class 'triptych_murphy'
plot(x, ...)
## S3 method for class 'triptych_murphy'
autoplot(object, ...)
## S3 method for class 'triptych_reliability'
plot(x, ...)
## S3 method for class 'triptych_reliability'
autoplot(object, ..., breaks = seq(0, 1, length.out = 11))
## S3 method for class 'triptych_roc'
plot(x, ...)
## S3 method for class 'triptych_roc'
autoplot(object, ...)
## S3 method for class 'triptych_mcbdsc'
plot(x, ...)
## S3 method for class 'triptych_mcbdsc'
autoplot(
object,
...,
n_isolines = 10,
colour_values = "black",
colour_unc = "#00BF7D",
MCBDSC_repel = FALSE,
MCB_lim = NA,
DSC_lim = NA
)
Arguments
x |
An object that inherits from one of the triptych classes. |
... |
Arguments passed from |
object |
An object that inherits from one of the triptych classes. |
breaks |
A vector of bin boundaries for the |
n_isolines |
The number of isolines showing mean scores. |
colour_values |
A colour specification passed to the |
colour_unc |
A colour specification highlighting the UNC component layers. |
MCBDSC_repel |
A boolean value indicating whether labels should be placed
by the |
MCB_lim |
The plot limits for the x-axis (the MCB component). |
DSC_lim |
The plot limits for the y-axis (the DSC component). |
Value
For an object of class 'triptych'
: A patchwork object (invisibly).
For all other triptych objects: A ggplot object (invisibly).
Every plot()
method wraps the corresponding autoplot()
method,
followed by an explicit print()
call.
That is, it always draws a plot, even during assignment or within a loop.
Examples
data(ex_binary, package = "triptych")
tr <- triptych(ex_binary)
dplyr::slice(tr, 1, 3, 6, 9) |> autoplot()
autoplot(tr$murphy)
autoplot(tr$reliability)
autoplot(tr$roc)
autoplot(tr$mcbdsc)