plot_cumulative_features: Plots a line depicting the number of features ( or any...

View source: R/plot_cumulative_features.R

plot_cumulative_featuresR Documentation

Plots a line depicting the number of features ( or any categorical variable ) that are below the pvalue ( or any categorical variable )

Description

Intended to depict how many features are below pvalues with vertical lines representing the typical cutoffs for significance ( .05, .01, .001 )

Usage

plot_cumulative_features(
  plot_df,
  gg_add_on = theme_minimal(),
  lab_x = "P-Value ( Log10 )",
  lab_y = "Cumulative Feature Count ( Log10 )",
  max_features = NA,
  max_pvalue = NA,
  output_path = NA,
  plot_title = "Cumulative Features Below P-Value",
  pvalue_clm = "pValue",
  size_height = 5,
  size_width = 5.5
)

Arguments

plot_df

Dataframe containing at a minimum pvalue data

gg_add_on

ggplot elements to add on to plot. Defaults to theme_minimal()

lab_x

String for labeling x axis

lab_y

String for labeling y axis

max_features

integer representing the maximum number of features to plot. Values above this will be dropped from the plot_df

max_pvalue

double representing the highest pvalue to be plotted. Values above this will be dropped from the plot_df

output_path

Output path for plot

plot_title

String for plot title

pvalue_clm

column name in plot_df corresponding to pvalues

size_height

Numeric to specify plot height

size_width

Numeric to specify plot width

Value

Returns ggplot object with graphed line and vertical lines at significance intervals


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.