PlotCorrelation | R Documentation |
Visualize correlation between two vectors
PlotCorrelation(
x,
y,
x.lab = NULL,
y.lab = NULL,
title = NULL,
pts.use = NULL,
labels = NULL,
font.size = 14,
label.font.size = 4,
pt.size = 1,
x.lim = NULL,
y.lim = NULL,
show.corr = F,
alpha = 1,
pt.color = NULL
)
x |
X-axis vector |
y |
Y-axis vector |
x.lab |
X-axis title |
y.lab |
Y-axis title |
title |
Plot title |
pts.use |
Data points to plot |
labels |
Data points to label |
font.size |
Axis and plot title font size |
label.font.size |
Size to use for data point labels |
pt.size |
Data point size |
show.corr |
Display pearson correlation in title |
alpha |
Data point transparency |
pt.color |
Colors to use for data points |
box |
Force x and y vectors to be on the same scale |
ggplot2 object with correlation plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.