scatter: Accessor and replacement functions for 'scatter' slot

scatterR Documentation

Accessor and replacement functions for scatter slot

Description

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

Usage

scatter(x, ...)

scatter(x, ...) <- value

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

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

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

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

Additional arguments.

value

A data frame giving information necessary to generate scatter plots of observed vs true values for each method and each stratification level.

Value

The accessor function returns a data frame giving information necessary to generate scatter plots of observed vs true values for each method and each stratification level.

Author(s)

Charlotte Soneson

Examples

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

csoneson/iCOBRA documentation built on May 3, 2024, 5:23 a.m.