GGally for quick overviews
Metabolites and lipids descriptive statistical analysis in R
Last updated
Metabolites and lipids descriptive statistical analysis in R
Last updated
In this subchapter, we want to introduce the package GGally, a great extension of the ggplot package. We will show one function, that can be useful if a fast glimpse at the descriptive statistics is necessary, e.g. while building models. However, with all your current skills in R, we encourage you to investigate this library and its functions more deeply. More information can be found here:
We will show you the function called ggpairs(). It can be applied to make a matrix of plots with your data set. Using one word, you can immediately plot for your numeric data:
box plots,
density plots,
scatter plots,
histograms,
and the information about the correlation value.
Check this simple code below and the obtained plot:
The output: