plot_rudimentary_logo: Quick visualisation of a logo. Not a fancy plot, just useful...

View source: R/pwm_utils.R

plot_rudimentary_logoR Documentation

Description

If you're looking a good way to make logos check out the package ggseqlogo

Usage

plot_rudimentary_logo(
  long_df,
  axis_txt_size = 10,
  alphabet_palette = c(t = "forestgreen", c = "dodgerblue", g = "orange", a =
    "firebrick3")
)

Arguments

long_df

A data.frame obtained with df2bits(long_format = TRUE).

axis_txt_size

Text size of axis labels. Default 10.

cell_txt_size

Text size of the heatmap cells that corresponds to the letter weight in that position. Default 3.

Value

A ggplot plot

Examples

df2bits(data, ID_col = 'Species', alphabet = c('a', 'c', 'g', 't'), small_n_correction = FALSE, long_format = T) |>
plot_rudimentary_logo()

df2bits(data, ID_col = 'Species', alphabet = c('a', 'c', 'g', 't'), small_n_correction = TRUE, long_format = T ) |>
plot_pwm_as_bars()

Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.