pt_line: Base plotting helper function.

View source: R/pt_line.R

pt_lineR Documentation

Base plotting helper function.

Description

Base plotting helper function.

Usage

pt_line(
  x,
  y,
  ln.lty,
  ln.col,
  ln.lwd,
  pch,
  bg,
  cex = 1,
  pt.lwd = 0.25,
  pt.lty = 1,
  pt.col = "black"
)

Arguments

x

x-value

y

y-value

ln.lty

line type

ln.col

line color

ln.lwd

line width

pch

plotting ‘character’, i.e., symbol to use. see points()

bg

background (fill) color for the open plot symbols given by pch = 21:25. see points()

cex

point size

pt.lwd

line width of points

pt.lty

line type for points

pt.col

color of point

Value

draws points and lines together.

Note

see points() and lines() functions

Examples

x.val=c(1,2,3)
mean.val=c(2,5,7)
se.val=c(0.1,0.5,1)
plot(mean.val~x.val,ylim=c(0,10),type="n")
pt_line(x.val,mean.val,2,"grey",1,21,"dodgerblue1")

SwampThingPaul/AnalystHelper documentation built on May 15, 2024, 1:32 p.m.