Skip to contents

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

Usage

logo(sequences)

Arguments

sequences

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

Value

ggplot2 object for simple sequence

Examples

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