Learn R Programming

iCOBRA (version 1.0.2)

plotcolors: Accessor and replacement functions for plotcolors slot

Description

Accessor and replacement functions for the plotcolors slot in an COBRAPlot object.

Usage

plotcolors(x, ...)

plotcolors(x, ...) <- value

## S3 method for class 'COBRAPlot': plotcolors(x)

## S3 method for class 'COBRAPlot,character': plotcolors(x) <- value

Arguments

x
An COBRAPlot object.
...
Additional arguments.
value
A character vector giving the colors assigned to each of the methods (or method/stratification level combinations) represented in the COBRAPlot object.

Value

  • The accessor function returns a character vector giving the colors assigned to each of the methods (or method/stratification level combinations) represented in the COBRAPlot object.

Examples

Run this code
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr")
cobraplot <- prepare_data_for_plot(cobraperf)
plotcolors(cobraplot)

Run the code above in your browser using DataLab