Learn R Programming

iCOBRA (version 1.0.2)

facetted: Accessor and replacement functions for facetted slot

Description

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

Usage

facetted(x, ...)

facetted(x, ...) <- value

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

## S3 method for class 'COBRAPlot,logical': facetted(x) <- value

Arguments

x
An COBRAPlot object.
...
Additional arguments.
value
A logical value, indicating whether the object is formatted for facetted plots (visualizing each stratification level in a separate panel) or not.

Value

  • The accessor function returns a logical value, indicating whether the object is formatted for facetted plots (visualizing each stratification level in a separate panel) or not.

Examples

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

Run the code above in your browser using DataLab