Description Usage Arguments Value Examples
Make customized scatter plot with diagonal line and R2 printed.
1 2 3 4 5 6 7 8 9 10 11 |
data |
dataset |
x |
x |
y |
y |
size0 |
point size, default to 1 of nobs<1000, 0.4 if nobs>1000 |
alpha0 |
alpha of point |
dilute |
a number or logical, dafault to TRUE, will plot
|
add_abline |
default to FALSE, add a diagonal line |
add_hist |
optional to add marginal histogram using
|
add_stat_cor |
add correlation and p-value from |
ggplot2 object if add_hist = FALSE
1 | scatter.plot.diagonal(data = iris, x = "Sepal.Length", y = "Petal.Length")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.