plotCor | R Documentation |
scatter plot with correlation statistics
plotCor(
x,
y,
outliers,
cor.method = c("pearson", "kendall", "spearman"),
line.methods = c("ols", "tls"),
na.rm = TRUE,
circular = FALSE,
circular.jitter = "",
cor.legend = TRUE,
line.legend = FALSE,
title = FALSE,
line.col = c(1, 2),
pch = 20,
cex = 1,
legpos,
legbg = "#FFFFFF99",
legcex = cex,
signif = 1,
round = 2,
density = TRUE,
col,
...
)
x |
the x coordinates of the points in the plot. |
y |
the y coordinates of the points in the plot. |
outliers |
vector of indices or logical vector of x,y values to exclude from correlation analysis. |
cor.method |
method to calculate correlation and p-value via
|
line.methods |
regression line methods, where |
na.rm |
remove NA values from x and y. |
circular |
treat data as circular, NOT fully implemented/tested. |
circular.jitter |
hack for equispaced phases (for circular=TRUE), adds jitter to x or y (arguments circular.jitter=c('x','y')) to avoid NA in cor.circular. |
cor.legend |
plot correlation, p-value and slope (TLS) as a legend. |
line.legend |
plot line fit method as a legend. |
title |
plot correlation parameters (as in legend) on the top of the plot. |
line.col |
colors of the regression lines drawn with
|
pch |
point symbols. |
cex |
point size. |
legpos |
position of the legend. |
legbg |
background color of the legend, default: transparent
via alpha=0. ## @param col color(s) of plotted points, if
|
legcex |
font size (cex) of the legend. |
signif |
number of digits to be shown for p-values in the plot
legend (argument |
round |
number of decimal places to be shown for correlation
values in the plot legend (argument |
density |
indicate local point densities by using
dense2d instead of the base |
col |
point color if |
... |
further arguments to the plotting function;
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.