
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",...)
the (absolute) value of the correlation plus the result of the cor.test as points
the bivariate scatterplots, with a fitted line
histograms (from pairs
)
data.frame or matrix object with measurements at several locations. Each column of x
represent values measured at different locations.
decimal places to be used for showing the correlation values
See cor
. An optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs".
See cor
. A character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman", can be abbreviated
further arguments passed to or from other methods, in particular it is used in the 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])
Run the code above in your browser using DataLab