xVolcano
is supposed to draw a volcano plot
xVolcano(data, column.lfc = "lfc", column.fdr = "fdr", cutoff.lfc = 1,
cutoff.fdr = 0.05, colors = c("#EEEEEE", "darkgrey", "pink", "red"),
column.label = NULL, top = 10, top.direction = c("both", "up", "down"),
label.size = 2, label.color = "black", label.alpha = 0.8,
label.padding = 0.5, label.arrow = 0.01, label.force = 0.5,
xlim = NULL, ylim = NULL, y.scale = c("normal", "log"),
xlab = expression(log[2]("fold change")),
ylab = expression(-log[10]("FDR")), font.family = "sans",
signature = TRUE)
a data frame
a character specifying 'lfc' column (log2-transformed fold change)
a character specifying 'fdr' column
a numeric defining 'lfc' cutoff. By default, it is 1 (at least 2-fold changes)
a numeric defining 'fdr' cutoff. By default, it is 0.05
a 4-element vector for color-coded points. By default, it is c("#EEEEEE","darkgrey","pink","red")
a character specifying 'label' column
an integer specifying the number of the top points for labellings
the direction (up- and down-regulated) of the top points. It can be one of 'both' (up- and down-regulated), 'up' (up-regulated only) and 'down' (down-regulated only)
the label size
the label color
the 0-1 value specifying transparency of labelling
the padding around the labeled
the arrow pointing to the labeled
the repelling force between overlapping labels
the limits in the x-axis
the limits in the y-axis
how to transform the y scale. It can be "normal" for no transformation, and "log" for log-based transformation
the x labelling. By default, it is expression(log[2]("fold change"))
the y labelling. By default, it is expression(-log[10]("FDR"))
the font family for texts
logical to indicate whether the signature is assigned to the plot caption. By default, it sets TRUE
a ggplot object
# NOT RUN {
# Load the library
library(XGR)
RData.location <- "http://galahad.well.ox.ac.uk/bigdata/"
# }
Run the code above in your browser using DataLab