ggseqlogo: Generate a ggplot object of sequence logos from the DNA...

View source: R/main.R

ggseqlogoR Documentation

Generate a ggplot object of sequence logos from the DNA frequency matrices.

Description

Generate a ggplot object of sequence logos from the DNA frequency matrices.

Usage

ggseqlogo(M, is.scale = FALSE, A_col = "#00BA38", C_col = "#619CFF",
  G_col = "#B79F00", T_col = "#F8766D")

Arguments

M

The DNA frequency matrices (4 * sequence lengths matrices).

is.scale

whether heights are scaled according to information contents or not.

A_col

The color for the "A" character.

C_col

The color for the "C" character.

G_col

The color for the "G" character.

T_col

The color for the "T" character.

Value

a ggplot object of sequence logos

Examples

ggseqlogo(matrix(rgamma(20, 1, 10), 4, 5), is.scale = TRUE)

friend1ws/ggseqlogo documentation built on July 28, 2023, 7:17 a.m.