Skip to contents

The DNAplot package provides a simple and customizable function to create aesthetically pleasing plots of DNA sequences. Each base is represented by a colored rectangle, allowing for easy visualization and analysis of sequence features.

Installation

You can install the development version of DNAplot from GitHub with:

# install.packages("remotes")
remotes::install_github("brunomioto/DNAplot")

Get started

Just write a sequence and plot it!

sequence <- "ACTGAAGTA"

plot_dna(sequence)
#> ℹ Plotting 9 bases

You can also plot undefined bases

sequence <- "ACYGARGTA"

plot_dna(sequence)
#> ℹ Plotting 9 bases