draw_genes_barplot | R Documentation |
This creates a barplot of chromosomes for the AnyHermesData object with the proportions of low expression genes.
draw_genes_barplot(
object,
chromosomes = c(seq_len(22), "X", "Y", "MT"),
include_others = TRUE
)
object |
( |
chromosomes |
( |
include_others |
( |
The ggplot
object with the histogram.
object <- hermes_data
# Display chromosomes 1-22, X, Y, and MT. Other chromosomes are displayed in "Others".
# To increase readability, we can have flip the coordinate axes.
draw_genes_barplot(object) + coord_flip()
# Alternatively we can also rotate the x-axis tick labels.
draw_genes_barplot(object) + theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust = 1))
# Display chromosomes 1 and 2. Other chromosomes are displayed in "Others".
draw_genes_barplot(object, chromosomes = c("1", "2"))
# Display chromosomes 1 and 2 only.
draw_genes_barplot(object, chromosomes = c("1", "2"), include_others = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.