Skip to content
/ gglogo Public
forked from heike/gglogo

R package for creating sequence logo plots

Notifications You must be signed in to change notification settings

OAITI/gglogo

 
 

Repository files navigation

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")

About

R package for creating sequence logo plots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 73.6%
  • HTML 15.0%
  • CSS 11.4%