stat_logo: Calculation of all pieces necessary to plot a logo sequence...

Description Usage Arguments Format Value Examples

View source: R/logos.r

Description

Calculation of all pieces necessary to plot a logo sequence plot

Usage

1
2
3
4


(mapping = NULL, data = NULL, geom = "logo", position = "logo",
  show.legend = NA, inherit.aes = TRUE, width = 0.9, na.rm = TRUE, ...)

Arguments

mapping

The aesthetic mapping, usually constructed with aes or aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.

data

A layer specific dataset - only needed if you want to override the plot defaults,

geom

The geometric object to use display the data,

position

The position adjustment to use for overlappling points on this layer,

show.legend

Whether to show the legend or not

inherit.aes

Whether to inherit the aes or not

width

maximum width of the letters, defaults to 0.9,

na.rm

Whether to remove NAs or not

...

other arguments passed on to layer. This can include aesthetics whose values you want to set, not map. See layer for more details.

Format

An object of class StatLogo (inherits from Stat, ggproto) of length 4.

Value

proto object

A proto object

Examples

1
2
3
4
5
6
7
8
9
# See geom_logo for examples
# Generate data
data(sequences)
library(ggplot2)

ggplot(data = ggfortify(sequences, "peptide")) + 
  (aes(x=position, y=bits, label=element, 
                group=interaction(position, element)), 
            alpha=0.5)

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