Usage
drawMA_vol(y, groups2, pv, cutoff=NULL, xlab1="(log2(A)+log2(B))/2", ylab1="log2(A)-log2(B)", tt1="MA plot", tt2="volcano plot", log2FoldChange =NULL, col1=c("black","red"))
Arguments
y
A count table in which row represents genes and column represents samples.
groups2
A vector indicates the two groups information of samples. It must match to
the column in the count table, which is the input for y. For example,
groups2=c("A","A","B","B") when the first two columns in the count table
are the two samples from condition A, and the second two columns in the
count table are the two samples from condition B.
pv
A vector of per-gene p-values based on the count table. The order of genes
in pv does matter. It must be the same as the order of genes in the count
table.
cutoff
A value used as a threshold for per-gene p-values to decide the genes that
are differentially expressed between two conditions. If NULL, the cutoff
value is calculated so that the red dots in the MA plot and volcano plot
represent the first 5
xlab1
A character indicating the label of x axis in MA plot.
ylab1
A character indicating the label of y axis in MA plot.
tt1
A character indicating the title of the MA plot.
tt2
A character indicating the title of the volcano plot.
log2FoldChange
A vector of fold changes in log2 scale. It will be calculated automatically
when ``log2FoldChange=NULL".
col1
A vector with two values including the colors of points. The first color in
``col1" is the color for the points that are non-differentially changed.
The second value in ``col1" is the color for the points that are
differentially changed. The default is c(``black", ``red").