Last chance! 50% off unlimited learning
Sale ends in
Produces a matrix with scatterplot, regression line and a loess smooth in the upper right panel; correlation coefficient (Pearson, Spearman or Kendall) and the probability of Ho in the lower left panel
pairsrp(dataframe, meth = "spearman", pansmo = FALSE, abv = FALSE, lwt.cex = NULL, ...)
a data.frame of numeric values
a character string indicating which correlation coefficient is to be computed. One of 'pearson', 'kendall', or 'spearman'(default). Can be abbreviated.
True if a loess smooth is to be plotted. Default to False.
True if the variable names must be abbreviates. Default to False.
character size expansion in the lower panel.
graphical parameters can be given as arguments to 'plot'.
This function is a wrapper for pairs() and cor()
# NOT RUN {
data(iris)
pairsrp(iris[,1:4],meth="pears",pansmo=TRUE,abv=TRUE)
# }
Run the code above in your browser using DataLab