Description Usage Arguments Details Value Examples
View source: R/scales_constructors_misc.R
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.
1 2 3 4 5 6 | scale_exontype_discrete(
...,
palette = NULL,
aesthetics = "exontype",
guide = "none"
)
|
... |
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. |
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.
A ScaleS4
object.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.