plotPairFeatures: Plot two isoforms by pair lines

View source: R/plotPairFeatures.R

plotPairFeaturesR Documentation

Plot two isoforms by pair lines

Description

Plot two isoforms by pair lines

Usage

plotPairFeatures(x0, x1, group.label = NULL, plot.title = NULL,
  group.color = c("red", "blue", "green", "pink"))

Arguments

x0

A vector of data points of the first isoforms

x1

A vector of data points of the second isoforms

group.label

A vector of group label of cells

plot.title

Title of the plot

group.color

A vector of colors for the cell groups

Value

None

Examples

data(isoformDataSample)
#preprocessing
isoformDataSample=ifelse(isoformDataSample <= 3,0,isoformDataSample)
isoformDataSample=isoformDataSample[which(rowSums(isoformDataSample)>0),]
#tranform read count dataset to log scale
isoformDataSample=ifelse(isoformDataSample==0,0,log2(isoformDataSample))
#now data is ready
x0=isoformDataSample[1,]
x1=isoformDataSample[2,]
plotPairFeatures(x0,x0)

nghiavtr/ISOP documentation built on April 21, 2023, 3:57 p.m.