hydropairs {hydroTSM} | R Documentation |
Visualization of a correlation matrix. On top the (absolute) value of the correlation plus the result of the cor.test
as stars. On bottom, the bivariate scatterplots, with a fitted line. On the diagonal, an histogram of each variable.
hydropairs(x, dec = 3, use = "pairwise.complete.obs", method = "pearson",...)
x |
data.frame or matrix object with measurements at several locations. Each column of |
dec |
decimal places to be used for showing the correlation values |
use |
See |
method |
See |
... |
further arguments passed to or from other methods, in particular it is used in the |
On top |
the (absolute) value of the correlation plus the result of the cor.test as points |
On bottom |
the bivariate scatterplots, with a fitted line |
On diagonal |
histograms (from |
Original idea taken from the R Graph Gallery (nowadays not available on its original link: http://addictedtor.free.fr/graphiques/graphcode.php?graph=137).
Histogram panel was taken from the R help of the original pairs
function
Mauricio Zambrano-Bigiarini, mzb.devel@gmail
## Loading the monthly time series of precipitation within the Ebro River basin. data(EbroPPtsMonthly) ## Visualizing the correlation among the monthly precipitation values ## of the first 3 gauging stations in 'EbroPPtsMonthly'. ## The first column of 'EbroPPtsMonthly' has the dates. hydropairs(EbroPPtsMonthly[,2:4])