plotCor: Correlation Plotting Plot a correlation bewteen any two...

View source: R/Correlations.R

plotCorR Documentation

Correlation Plotting Plot a correlation bewteen any two columns from any data frame(s) or named vectors

Description

Correlation Plotting Plot a correlation bewteen any two columns from any data frame(s) or named vectors

Usage

plotCor(
  x,
  y,
  xCol = FALSE,
  yCol = FALSE,
  xlab = "",
  ylab = "",
  title = "",
  scale = FALSE,
  showP = FALSE
)

Arguments

x

Data frame with rownames or named vector containing data to be plotted on the x-axis

y

Data frame with rownames or named vector containing data to be plotted on the y-axis

xCol

Character indicating column name in x of data to be plotted on the x-axis. Leave FALSE if x is a named vector.

yCol

Character indicating column name in y of data to be plotted on the y-axis. Leave FALSE if y is a named vector.

xlab

Character indicating x-axis label

ylab

Character indicating y-axis label

title

Character indicating title of plot

scale

Should the data be z-score scaled? Default is FALSE.

showP

Boolean indicating if the p-value should also be displayed (Default = FALSE)

Value

Scatter plot of data with line of best fit and R-value of correlation. Note that x and y data are paired based on the rownames of the data frame or names of the named vector. Non-paired values will not be plotted.


kevincjnixon/BinfTools documentation built on July 10, 2024, 11:46 a.m.