Learn R Programming

iCOBRA (version 1.0.2)

scatter: Accessor and replacement functions for scatter slot

Description

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

Usage

scatter(x, ...)

scatter(x, ...) <- value

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

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

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

Arguments

x
An 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.

Examples

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

Run the code above in your browser using DataLab