Basic plotting in R
Metabolites and lipids descriptive statistical analysis in R
R is an excellent solution for producing graphics depicting descriptive statistics. Among the R packages, there are various solutions suitable for beginners, e.g., dlookr, DataExplorer, ggpubr, or ggstatsplot, which create charts via uncomplicated functions. More experienced users select libraries that offer a high level of flexibility, like ggplot2 or plotly. However, in some cases, the code can become too complex for a beginner.
Here, we will show you how to prepare essential charts in R, which are frequently used in lipidomics and metabolomics studies. We will start every subchapter with the simplest method, progressing toward ggplot2 or plotly solution. We will begin with setting the working directory (wd) and the installation of all necessary packages:
Here, we keep using the lipidomics data set we shared at the beginning of the Gitbook. Now, we are ready to prepare the first plots in R.
Last updated