pairsrp | R Documentation |
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, ...)
dataframe |
a data.frame of numeric values |
meth |
a character string indicating which correlation coefficient is to be computed. One of 'pearson', 'kendall', or 'spearman'(default). Can be abbreviated. |
pansmo |
True if a loess smooth is to be plotted. Default to False. |
abv |
True if the variable names must be abbreviates. Default to False. |
lwt.cex |
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()
pairs
data(iris)
pairsrp(iris[,1:4],meth="pears",pansmo=TRUE,abv=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.