| plot_gene | R Documentation |
Boxplot of absolute and relative abundances for the isoforms of a given gene. The style option allows grouping by condition or by isoform.
plot_gene(
dtuo,
pid,
style = "bycondition",
fillby = NA_character_,
colourby = NA_character_,
shapeby = NA_character_,
isofcolvec = c("tomato", "lightblue", "forestgreen", "purple", "hotpink", "gold3"),
dtucolvec = c(`TRUE` = "firebrick1", `FALSE` = "dodgerblue", `NA` = "gold"),
condcolvec = c("grey15", "steelblue"),
replcolvec = c("red", "blue", "green", "violet", "pink", "orange"),
nonecol = "grey50"
)
dtuo |
A DTU object. |
pid |
A |
style |
Different themes:
|
fillby |
Applies to the boxplots. Not all options will work with all styles.
|
colourby |
Applies to boxplot outline and points. Not all options will work with all styles.
|
shapeby |
Applies to points.
|
isofcolvec |
Colour vector for isoform highlighting. Used to build a colorRampPalette. |
dtucolvec |
Colour vector for DTU highlighting. |
condcolvec |
Colour vector for condition highlighting. |
replcolvec |
Colour vector for replicate highlighting. Used to build a colorRampPalette. |
nonecol |
Colour to use when no colour coding is wanted. |
A ggplot2 object. Simply display/print it or you can also customize it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.