Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.25 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.25 KB
title author date output
gglogo
Eric Hare, Heike Hofmann
July 30, 2019
html_document
keep_md
true

R package for creating sequence logo plots

CRAN Status CRAN RStudio mirror downloads Travis-CI Build Status

Installation

gglogo is available from CRAN (version 0.1.4):

install.packages("gglogo")

The development version is available from Github (0.1.9000):

# install.packages("devtools")
devtools::install_github("heike/gglogo", build_vignettes = TRUE)

Getting Started

Load the library

library(gglogo)

Load a dataset

data(sequences)

A first sequence logo plot

library(ggplot2)

ggplot(data = ggfortify(sequences, peptide)) +      
  geom_logo(aes(x = position, y = bits, group = element, 
     label = element, fill = interaction(Polarity, Water)),
     alpha = 0.6)  +
  scale_fill_brewer(palette = "Paired") +
  theme(legend.position = "bottom")