A package with a variety of functions made to streamline personal habits in R.
Package is installed using the devtools package:
if (!require("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("jrijn/streamlineR")
The function "publish" is a customized ggplot theme based on the "ggpubr" package. It also includes colorblind-safe color palettes, and is very easy to use:
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point() +
scale_color_manual(values = colorBlindGrey8) +
publish()
To use the chromatogram functions, the package rawrr needs to be installed first:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("rawrr")
if (isFALSE(rawrr::.checkDllInMonoPath())){
rawrr::installRawFileReaderDLLs()
}
rawrr::installRawrrExe()
After installing rawrr, plotting Orbitrap chromatograms is super easy:
rawfile <- "C:/myfile.raw"
lc <- importChromatograms(rawfile)
plotChromatograms(lc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.