plotcolors: Accessor and replacement functions for 'plotcolors' slot

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
2
3
4
5
6
7
8
9
plotcolors(x, ...)

plotcolors(x, ...) <- value

## S4 method for signature 'COBRAPlot'
plotcolors(x)

## S4 replacement method for signature 'COBRAPlot,character'
plotcolors(x) <- value

Arguments

x

A 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.

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr")
cobraplot <- prepare_data_for_plot(cobraperf)
plotcolors(cobraplot)

iCOBRA documentation built on April 17, 2021, 6:07 p.m.