knitr::opts_chunk$set(
  comment = "#>",
  fig.path = "show/README-",
  warning = FALSE
)

omplotr: 'ggplot2' Based RNAseq Plot Function Collection

Theme

theme_onmath is a ggplot theme used in almost all rnaseq plots.

library(omplotr)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,colour = factor(gear)))
p + theme_onmath() + ggtitle("theme_onmath")

Plot

functions to generate plot in ngs analysis

QC

Reads GC distribution

# Fastqc GC result
head(gc_test_data, 4)

# lineplot of GC distribution across Fastq file
gc_line_plot(gc_test_data)

Reads Quality barplot

# Reads Quality result
# Bars of Quality <= 30 were marked with color 'dodgerblue', 
# Bars of Quality > 30 were marked with color 'navy'.
head(rq_test_data, 4)

# Reads Quality barplot
reads_quality_plot(rq_test_data)


bioShaun/omplotr documentation built on June 11, 2025, 7:48 a.m.