Plots a volcano plot showing negative log10 p-values on the y axis and fold change on the x axis. Each point is colored by fold change direction and whether or not it was significant by ANOVA.

statres_volcano_plot(
  volcano,
  data_scale,
  pval_thresh,
  fc_colors,
  fc_threshold,
  interactive,
  x_lab,
  y_lab,
  title_lab,
  legend_lab
)

Arguments

volcano

data frame produced by pmartR:::make_volcano_plot_df

data_scale

One of c("log2","log","log10"), for labeling purposes.

pval_thresh

numeric value between 0 and 1 for the alpha level to determine significance. Any values that are significant at this level will be colored based on fc_colors.

fc_colors, fc_threshold, interactive

passed from pmartR::plot.statRes()

x_lab

character string specifying the x-axis label.

y_lab

character string specifying the y-axis label.

title_lab

character string specifying the plot title.

legend_lab

character string specifying the legend title.

Value

`ggplot` object. A volcano plot.