Volcano: This is a volcano plot function

Description Usage Arguments Value

View source: R/Volcano.R

Description

This is a volcano plot function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Volcano(
  data = data,
  x = "log2FoldChange",
  y = "Padj",
  fill,
  color = "Threshold",
  color_palette = c("#8DA0CB", "grey", "#FC8D62"),
  label = "gene",
  label_data = subset_data,
  alpha = 0.5,
  plotLab = T,
  xlab = "log2 Fold Change",
  ylab = "log10 Padj",
  title = "Volcano Plot of genes",
  xline = c(-1, 1)
)

Arguments

data

the dataframe you would like to display

x

the colname of data which you would like to use as x value.

y

the colname of data which you would lite to use as y value.

fill

the colname of data you would like to draw color(fill color)

color

the colname of data you would like to draw color(edge color)

color_palette

all colors your would like to use in your figure.

label

the lable name you would like to put

label_data

A dataframe which you would like to take label

alpha

the transparency of points

plotLab

the logical value, if you would like to display label text.

xlab

the name of x-asix, with the default string of "log2FoldChange".

ylab

the name of y-asix, with the default string of "-log10 Padj".

title

the name of this figure. default name is "Volcano Plot of genes"

xline

the xintercept, default is c(-1,1).

Value

a volcano plot of ggplot format


yujijun/crisprverfied documentation built on March 29, 2020, 6:29 a.m.