View source: R/Plot_correlation.R
plot_correlation | R Documentation |
Correlation simplified creation
plot_correlation( df, x, ..., ylog = T, xlog = F, add = "reg.line", cor.coef = T, cor.method = "spearman", conf.int = F, outputExpr = F, colwrap = NA, wrapscale = "free", caption = F )
df |
name of the dataset to analyze |
x |
name of the X variable |
... |
names of the y variables (one per wrapped subplot) |
ylog |
y logarithmic scale |
add |
By default "reg.line", see ggpubr ("none"," "reg.line", "loess") |
cor.coef |
To display correlation coeficient or not |
cor.method |
Correlation method to use ("pearson", "spearman" or "kendall") |
conf.int |
Toggle or not confidence interval |
outputExpr |
display the R inependent code (T) or its evaluation (F) |
colwrap |
column to wrap, if "..." is of length one only |
wrapscale |
Scale for wrapping (ggplot syntax) |
xlox |
x logarithmic scale |
Thibaud Derippe (Thibaud.Derippe@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.