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.
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. |
A ScaleS4
object.
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.
NULL#> NULL