Generalbubbleplot: Generalbubbleplot

Description Usage Arguments Value Examples

View source: R/bubbleplot.R

Description

This function is to make bubbleplot out of a data pair. Notice, genelist is a dataframe that contain a column that is gene name, where the column name is "gene", if fa facet plot is wanted , an extra column named "tag" is required

Usage

1
2
3
4
Generalbubbleplot(pair.data = NULL, cpcol = "celltype2",
  toskip = NULL, genelist = NULL, hlen = 30, llen = 25,
  midlen = 0, limlen = 30, showcmcol = F, titlename = "",
  angl = 0, donormalscale = F, doreturn = F, usefacet = F)

Arguments

pair.data

the data pair that was prepred by datapair.mk

cpcol

The column name for comparison, the default is name

toskip

A vector of variables from col(eg, a cell type), that I don't want to show in bubble plot

genelist

A vector of genes that are interesting

hlen

The high color span length, default is 30

llen

The low color span length, default is 25

midlen

The middle color span length, default is 0

limlen

The extreme high or low color span length

showcmcol

If true, print out a couple of lines of compared column

titlename

The figure title

angl

The angle of x axis that I want it to rotate

donormalscale

If true, further normalize to zero for all genes

doreturn

If true, reurn a list including bubble data and bubble plot

usefacet

If true, plot with facet, an extra column in genelist is required

Value

return data pair that can be used for DE, bubble plot and others.

Examples

1
Generalbubbleplot(ROCKvsnorock.non.paired,cpcol="name",genelist=c("TP53","TNFRSF1A","BAK1","CASP1"),donormalscale=F)

chenweng1991/EZsinglecell documentation built on July 11, 2020, 3:23 p.m.