addSpecialProteins: add special labels

Description Usage Arguments Examples

View source: R/volcano2G.R

Description

add special labels

Usage

1
2
addSpecialProteins(p, dataX, special, foldchange = "log2FC",
  pvalue = "q.mod", labels = "names")

Arguments

p

ggplot2

dataX

data.frame

special

additional special labels for those entries in the labels column below.

foldchange

name of fold change column

pvalue

name of p-value column

labels

name of labels column

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
foldchange <- rnorm(1000)
pvals <-rexp(1000)
names <- sample(colors(),1000,replace=TRUE)

dataX <- data.frame(
  q.mod = pvals,
  log2FC = foldchange,
  names = names
)
library(rlang)
foldchange = "log2FC"
p <- volcano2GB(dataX, pthresh=0.1, log2FCThresh=0.5 , main='test',
                repel.segment.size=0.3,
                repel.text.size=2)
special <- sample(colors(),5)
p <- addSpecialProteins(p, dataX, special)
p

quantable documentation built on May 16, 2018, 1:04 a.m.