plot_correlation: Correlation simplified creation

View source: R/Plot_correlation.R

plot_correlationR Documentation

Correlation simplified creation

Description

Correlation simplified creation

Usage

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
)

Arguments

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

Author(s)

Thibaud Derippe (Thibaud.Derippe@gmail.com)


Peccary-PMX/PeccAnalysis documentation built on July 7, 2022, 5:27 a.m.