single_markers_statistics: Provide statistics for each marker.

View source: R/single_markers_statistics.R

single_markers_statisticsR Documentation

Provide statistics for each marker.

Description

A function that computes the statistics and a scatter-plot for each marker.

Usage

single_markers_statistics(data_long)

Arguments

data_long

a data.frame in long format returned by combiroc_long().

Details

This function computes the main statistics of the signal values distribution of each marker in both classes. In addition it also shows the values through scatter plots.

Value

a list object containing:

  • 'Statistics': a dataframe containing the main statistics for each marker in each class.

  • 'Plots': a named list of scatter plots showing signal intensity values.

Examples

## Not run: 
demo_data # combiroc built-in demo data (proteomics data from Zingaretti et al. 2012 - PMC3518104)

data_long <- combiroc_long(demo_data) # reshape data in long format

sms <- single_markers_statistics(data_long)

sms$Statistics # to visualize the statistics of each single marker
sms$Plots[[1]] # to visualize the scatterplot of the first marker

## End(Not run)

combiroc documentation built on July 9, 2023, 5:56 p.m.