PlotCorrelation: Visualize correlation between two vectors

View source: R/plotting.R

PlotCorrelationR Documentation

Visualize correlation between two vectors

Description

Visualize correlation between two vectors

Usage

PlotCorrelation(
  x,
  y,
  x.lab = NULL,
  y.lab = NULL,
  title = NULL,
  pts.use = NULL,
  labels = NULL,
  font.size = 14,
  label.font.size = 4,
  pt.size = 1,
  x.lim = NULL,
  y.lim = NULL,
  show.corr = F,
  alpha = 1,
  pt.color = NULL
)

Arguments

x

X-axis vector

y

Y-axis vector

x.lab

X-axis title

y.lab

Y-axis title

title

Plot title

pts.use

Data points to plot

labels

Data points to label

font.size

Axis and plot title font size

label.font.size

Size to use for data point labels

pt.size

Data point size

show.corr

Display pearson correlation in title

alpha

Data point transparency

pt.color

Colors to use for data points

box

Force x and y vectors to be on the same scale

Value

ggplot2 object with correlation plot


yanwu2014/perturbLM documentation built on Aug. 24, 2023, 2:28 p.m.