scale_exontype_discrete: Scales for exon types.

Description Usage Arguments Details Value Examples

View source: R/scales_constructors_misc.R

Description

Displaying gene models take the convention that coding sequences (CDSs) are drawn thicker than untranslated regions (UTRs). This scale type maps names of exontypes to thickness values.

Usage

1
2
3
4
5
6
scale_exontype_discrete(
  ...,
  palette = NULL,
  aesthetics = "exontype",
  guide = "none"
)

Arguments

...

Arguments passed on to the S4 discrete scale

palette

A palette function that returns a named numerical vector that maps exon type names to widths.

aesthetics

The names of the aesthetics that this scale works with.

guide

A function used to create a guide or its name.

Details

This scale is typically used in conjunction with geom_genemodel.

By default, the following characters are recognised as CDSs: "CDS", "cds", and are drawn at 1x thickness. The following characters are recognised as UTRs: "UTR", "utr", "three_prime_UTR", "three_prime_utr", "five_prime_UTR", "five_prime_utr", and are drawn at 0.5x thickness.

Value

A ScaleS4 object.

Examples

1

teunbrand/ggnomics documentation built on Aug. 2, 2020, 7:34 p.m.