Learn R Programming

baseq (version 0.2.0)

plot_dotplot: Plot Dot Plot

Description

Generates a dot plot comparison of two sequences.

Usage

plot_dotplot(s1, s2, window = 1)

Value

A ggplot object

Arguments

s1

First sequence

s2

Second sequence

window

Integer word size for matching (default: 1)

Examples

Run this code
s1 <- "ATGCATGCATGC"
s2 <- "ATGCGTGCATGC"
plot_dotplot(s1, s2, window = 3)

Run the code above in your browser using DataLab