sxtVolcanoPlot: sxtVolcanoPlot

Description Usage Arguments Value Author(s)

View source: R/sxtVolcanoPlot.R

Description

Volcano plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
sxtVolcanoPlot(
  p.value,
  fc,
  p.cutoff = 0.05,
  fc.cutoff = 2,
  linetype = c("3", "2", "1"),
  xlab = "log2(Fold change)",
  ylab = "-log10(P-value, FDR)",
  title = "Volcano plot",
  legend.title = "Marker",
  legend.label = c("Yes", "No"),
  point.color = c("#F8766D", "#619CFF"),
  alpha = 0.9,
  lab.size = 12,
  axis.text.size = 12,
  title.size = 15,
  legend.title.size = 12,
  legend.text.size = 10,
  ...
)

Arguments

p.value

A numeric vector for p values.

fc

A numeric vector for fold change values.

p.cutoff

The cutoff of p values.

fc.cutoff

The cutoff of fold change values, only set the larger side.

linetype

The line type for cutoff of p values and fold change values.

xlab

Title of x axis.

ylab

Title of y axis.

title

Title of plot.

legend.title

Legend title.

legend.label

Legend label.

point.color

Colors of points.

alpha

Alpha of points.

lab.size

Font size of axis titles.

axis.text.size

Font size of axis text.

title.size

Font size of title.

legend.title.size

Font size of legend title.

legend.text.size

Font size of axis text.

Value

A ggplot object.

Author(s)

Xiaotao Shen shenxt1990@163.com


jaspershen/sxtTools documentation built on May 2, 2020, 6:37 a.m.