panel.cor | R Documentation |
panel function to plot correlation in pair plot
panel.cor(x, y, digits = 2, prefix = "", cex.cor, text_pos = c(0.5, 0.5), ...)
x , y |
Variables to calculate correlation |
digits |
integer indicating the number of decimal places to be used |
prefix |
character what should be put before number |
cex.cor |
character expansion of the plotted correlation |
tex_pos |
vector in the form c(x,y), defines the position of the correlation. The coordinates are given as normalized device coordinates. |
plot correlation
pairs(iris, lower.panel = panel.smooth, diag.panel = panel.hist,
upper.panel = panel.cor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.