plot_pwm_as_hm: Visualise a positional weight matrix as a heatmap

View source: R/pwm_utils.R

plot_pwm_as_hmR Documentation

Visualise a positional weight matrix as a heatmap

Description

Visualise a positional weight matrix as a heatmap

Usage

plot_pwm_as_hm(long_df, cell_txt_size = 3, axis_txt_size = 10)

Arguments

long_df

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

cell_txt_size

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

axis_txt_size

Text size of axis labels. Default 10.

Value

A ggplot plot

Examples

df2pwm(data, ID_col = 'Species', alphabet = c('a', 'c', 'g', 't'), long_format = T) |>
  plot_pwm_as_hm() 

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