probvis: probvis

Description Usage Arguments Value Examples

View source: R/Classify.R

Description

Produces a stacked bar chart depicting the probabilities a given sample has of being classified for each class (hence the sum is always 1.0).

Usage

1
probvis(classed)

Arguments

classed

A data frame where each row represents the probability for given a sample to fit each of the four classes as well as its overall classification based on the chosen thresholds.

Value

Plots a stacked bar chart depicting the probabilities a given sample has of being classified for each class (hence the sum is always 1.0)

Examples

1
2
3
4
5
6
cf <- system.file("data","test_data.txt",package="AllSorts") #Get path to raw text file (a tsv)
counts <- read.table(file=cf,sep=' ',stringsAsFactors = FALSE,header=TRUE)
FPKM <- streamline(counts[,c(1:6)],counts$Gene_Length)
thresh <- c(0.2,0.2,0.8,0.9)
classed <- classify(FPKM,thresh)
probvis(classed)

Oshlack/Baller documentation built on Jan. 23, 2021, 6:50 p.m.