Learn R Programming

gglogo (version 0.1.5)

logo: Logo plot

Description

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab