en:data_preparation_r
Preparation of data for analysis
R functions
Simple EDA (Exploratory Data Analysis):
boxplot
- draws the boxplot of data; with argumentoutline = TRUE
(default setting) draws also the outliers;hist
- histogram with distribution of values in the variable;qqnorm
,qqline
- draws QQ plot (comparing the quantiles of values in variable x to quantiles of normal distribution) and adds the line for comparison.pairs
- draws the pairwise relationships between variables in the matrix/data.frame; the originalpairs
function can be extended for panel functions from Numerical Ecology with R, which gives quite interesting tool for data overview (see details here).
Data transformation
sqrt
log
,log10
,log1p
Data standardization
scale
decostand
(libraryvegan
)
en/data_preparation_r.txt · Last modified: 2021/03/03 19:48 by David Zelený