gtest_heatmap: Plot a heatmap for the g-test results of imd-anova

gtest_heatmapR Documentation

Plot a heatmap for the g-test results of imd-anova

Description

Plots a heatmap showing bins for combinations of # of biomolecules present across groups. Bins are colored by the number of biomolecules falling into each bin, and have indicators for significance by g-test.

Usage

gtest_heatmap(
  volcano,
  pval_thresh,
  show_sig,
  interactive,
  color_low,
  color_high,
  plotly_layout,
  text_size,
  display_count,
  x_lab,
  y_lab,
  title_lab,
  legend_lab
)

Arguments

volcano

'data.frame' produced by pmartR:::make_volcano_plot_df

pval_thresh

numeric value indicating the p-value threshold for significance.

show_sig

Boolean whether to show the visual indicator that a certain bin combination is significant by the g-test

interactive

passed from pmartR::plot.statRes(). If T, will build a plotly version of the plot. Defaults to FALSE.

color_low

character string specifying the color of the gradient for low count values.

color_high

character string specifying the color of the gradient for high count values.

plotly_layout

A list of arguments, not including the plot, to be passed to plotly::layout if interactive = T.

text_size

An integer specifying the size of the text (number of non-missing values) within the plot. The default is 3.

display_count

logical value. Indicates whether the non-missing counts will be displayed on the bar plot. The default is TRUE.

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 or plotly' object, depending on if interactive is set to TRUE or FALSE respectively. A g-test heatmap


pmartR/pmartR documentation built on March 4, 2024, 8:32 a.m.