This function creates a volcano plot from a limma top table, plotting
log fold changes against the negative log10 of adjusted p-values.
Usage
create_volcano_plot(top_table, adj_pthresh, compared_levels)
Arguments
- top_table
A data frame from limma containing 'logFC' and 'adj.P.Val'
columns.
- adj_pthresh
A numeric value for the adjusted p-value threshold.
- compared_levels
A character vector of length 2 specifying the
compared levels.
Value
A ggplot object representing the volcano plot.