plotLine: Plots scatterplot with regression line

View source: R/general.purpuse.utilities.R

plotLineR Documentation

Plots scatterplot with regression line

Description

Wrapper for pllot function

Usage

plotLine(
  x,
  y = NULL,
  cor.method = "pearson",
  line.col = "red",
  line.lwd = 1,
  plot.ci = FALSE,
  ci.transparency = 0.3,
  line.on.top = TRUE,
  new = TRUE,
  ...
)

Arguments

x, y

coordinates

cor.method

pearson (default) or spearman

line.col

colour of line

line.lwd

line width

plot.ci

logical, should CI be plotted

ci.transparency

alpha of CI area

line.on.top

logical, should line be on the top of points

new

logical, create new plot (default) or add to existing

...

other arguments for plot function


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.