Description Usage Arguments Value Examples
make customized scatter plot with diagonal line and R2 printed.
1 2 | scatter.plot.diagonal(data, x, y, size0 = 0.2, alpha0 = 0.3,
dilute = FALSE, add_abline = FALSE, add_hist = TRUE)
|
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 |
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.