Skip to contents

Creates a plot of a DNA sequence, with each base represented by a colored rectangle.

Usage

plot_dna(seq)

Arguments

seq

A character string representing the DNA sequence.

Value

A ggplot2 object representing the DNA sequence plot.

Examples


seq <- "ATCGATCG"
plot_dna(seq)
#>  Plotting 8 bases