ggseqlogo | R Documentation |
ggseqlogo
is a shortcut for generating sequence logos.
It adds the ggseqlogo theme theme_logo
by default, and facets when multiple input data are provided.
It serves as a convenient wrapper, so to customise logos beyond the defaults here, please use geom_logo
.
ggseqlogo(data, facet = "wrap", scales = "free_x", ncol = NULL,
nrow = NULL, ...)
data |
Character vector of sequences or named list of sequences. All sequences must have same width |
facet |
Facet type, can be 'wrap' or 'grid' |
scales |
Facet scales, see |
ncol |
Number of columns, works only when |
nrow |
Number of rows, same as |
... |
Additional arguments passed to |
# Load sample data
data(ggseqlogo_sample)
# Plot a single DNA sequence logo
p1 = ggseqlogo( seqs_dna[[1]] )
print(p1)
# Plot multiple sequence logos at once
p2 = ggseqlogo( seqs_dna )
print(p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.