Learn R Programming

iCOBRA (version 1.0.2)

deviation: Accessor and replacement functions for deviation slot

Description

Accessor and replacement functions for the deviation slot in an COBRAPerformance or COBRAPlot object.

Usage

deviation(x, ...)

deviation(x, ...) <- value

## S3 method for class 'COBRAPerformance': deviation(x)

## S3 method for class 'COBRAPerformance,data.frame': deviation(x) <- value

## S3 method for class 'COBRAPlot,data.frame': deviation(x) <- value

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A data frame giving information necessary to plots of deviations between observed and true scores for each method and each stratification level.

Value

  • The accessor function returns a data frame giving information necessary to plots of deviations between observed and true scores for each method and each stratification level.

Examples

Run this code
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example, cont_truth = "logFC",
                                   aspects = "deviation")
head(deviation(cobraperf))

Run the code above in your browser using DataLab