plot_polya_distribution: Plots polya distribution as ndensity plot

View source: R/polya_plots.R

plot_polya_distributionR Documentation

Plots polya distribution as ndensity plot

Description

Plots polya distribution as ndensity plot

Usage

plot_polya_distribution(
  polya_data,
  groupingFactor = NA,
  parameter_to_plot = "polya_length",
  condition1 = NA,
  condition2 = NA,
  show_center_values = "none",
  subsample = NA,
  ndensity = TRUE,
  mode_method = "density",
  auto_scale = T,
  transcript_id = NULL,
  transcript_id_column = "transcript",
  ...
)

Arguments

polya_data

input data with polyA predictions

groupingFactor

how to group

parameter_to_plot

what to plot on x scale (defaults to polya_length)

condition1

First condition to include on the plot

condition2

Second condition to include on the plot

show_center_values

Show center values as vertical line. Possible values: "none","median","mean"

subsample

Subsample input table, provide either absolute number or fraction

ndensity

Should ndensity (scaled density) be plotted instead of normal denisty (default = TRUE)

mode_method

method used for the mode calculation (argument to modeest::mlv method parameter)

auto_scale

automatically adjust axis scales (default=TRUE)

...

parameters passed to .basic_aesthetics function (scale_x_limit_low = NA, scale_x_limit_high = NA, scale_y_limit_low = NA, scale_y_limit_high = NA, color_palette = "Set1",plot_title=NA)

Value

ggplot object


smaegol/nanotail documentation built on June 29, 2024, 12:35 a.m.