deviation {iCOBRA} | R Documentation

## Accessor and replacement functions for `deviation` slot

### Description

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

### Usage

    deviation(x, ...)

    deviation(x, ...) <- value

    ## S4 method for signature 'COBRAPerformance'
    deviation(x)

    ## S4 replacement method for signature 'COBRAPerformance,data.frame'
    deviation(x) <- value

    ## S4 replacement method for signature 'COBRAPlot,data.frame'
    deviation(x) <- value

### Arguments

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

### Author(s)

Charlotte Soneson

### Examples

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

[Package iCOBRA version 1.10.0 Index]