logo: Logo plot

Description Usage Arguments Value Examples

View source: R/logos.r

Description

Simple logo plot of sequences. For more complicated sequence logos, such as with treatment comparisons or subsets see geom_logo.

Usage

1

Arguments

sequences

vector of text sequences, for which consensus logo is to be shown

Value

ggplot2 object for simple sequence

Examples

1
2
3
4
5
data(sequences)
library(ggplot2)
library(RColorBrewer)
cols <- rep(brewer.pal(12, name="Paired"),22)
(sequences$peptide) + aes(fill=element) + scale_fill_manual(values=cols)

gglogo documentation built on May 30, 2017, 3:40 a.m.