Description Usage Arguments Author(s) Examples
corr_scatter_ci scatterplot for x and y with correlation and lm (with CI and Rugs); recommend for median numbers of x and y
1 | corr_scatter_ci(x, y, cor_m, x_lab, y_lab, file_name)
|
x, y |
A numeric vector |
cor_m |
mehtod for correlation: "pearson", "kendall", "spearman" |
x_lab |
The x axis lable |
y_lab |
The y axis lable |
file_name |
Name of output figure with format suffix |
yzeng
1 2 3 | x <- rnorm(100)
y <- rnorm(100)
corr_scatter_ci(x, y, "pearson", "var_1", "var_2", "test_corr_scatter_with_CI.pdf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.