plot_bias: Plot RPF biases

View source: R/make_plots.R

plot_biasR Documentation

Plot RPF biases

Description

This function generates 'iXnos'-style plot of codon or nucleotide positional contributions to RPF counts.

Usage

plot_bias(
  model_metric,
  plot_title = "",
  plot_subtitle = "",
  type = "codon",
  metric = "corr",
  fill_colors = NULL
)

Arguments

model_metric

numeric vector; output from 'evaluate_bias'

plot_title

character; title for plot

plot_subtitle

character; subtitle for plot

type

character; one of 'codon' or 'nt' corresponding to 'model_metric'

metric

character; one of 'corr' or 'norm'

fill_colors

named character vector; colors corresponding to positions

Value

A ggplot object


amandamok/choros documentation built on March 15, 2023, 7:57 p.m.