ggmotif: ggmotif

Description Usage Arguments Value Examples

View source: R/motif_plot.R

Description

package to help plot DNA sequence motifs on ggplots

ggmotif

Usage

1
ggmotif(x, x.pos = 0, y.pos = 0, ht = 1, wt = 1, id = "")

Arguments

x

either a character string, a DNAString object, or a matrix

x.pos

position on x axis for bottom left corner of motif

y.pos

position on y axis for bottom left corner of motif

ht

height of motif, default is 1

wt

width of each letter of motif, default is 1

id

id

Value

geom_polygon to be added to ggplot. this will also add an ugly legend... to remove, use ggmotif_scale

Examples

1
ggplot() + ggmotif("ACG",x.pos = 5,y.pos = 2) + ggmotif_scale()  + ggmotif_theme()

AliciaSchep/ggmotif documentation built on May 5, 2019, 4:54 a.m.