splot: X-Y Plotting

View source: R/splot.R

splotR Documentation

X-Y Plotting

Description

splot handels generic 2-d plotting.

Usage

splot(
  data = NULL,
  axis.style = "r",
  sec.x = F,
  sec.y = F,
  at1 = NULL,
  at2 = NULL,
  at3 = NULL,
  at4 = NULL,
  at1.labels = NULL,
  at2.labels = NULL,
  at3.labels = NULL,
  at4.labels = NULL,
  mgp1 = c(3, 0.1, 0),
  mgp2 = c(3, 0.2, 0),
  lwd.axis = 0.1,
  bg = NULL,
  ...
)

Arguments

data

a two-column data.frame or data.table with x variable in the first column and y variable in the second.

axis.style

axis style, can be one of "i" (default) or "r".

sec.x

logical. If TRUE the axis on the top would be added.

sec.y

logical. If TRUE the axis on the right would be added.

at1

the points at which x-tick-marks are to be drawn.

at2

the points at which y-tick-marks are to be drawn.

at3

the points at which sec.x-tick-marks are to be drawn.

at4

the points at which sec.y-tick-marks are to be drawn.

at1.labels

x-tick-labels.

at2.labels

y-tick-labels.

at3.labels

sec.x-tick-labels.

at4.labels

sec.y-tick-labels.

mgp1

mgp for x axis, same as the mgp in par.

mgp2

mgp for y axis, same as the mgp in par.

lwd.axis

axis line width.

bg

background color.

...

other graphical parameters to be passed.

Examples

splot(cars)


jiachengzhao/smot documentation built on Sept. 20, 2022, 6:36 a.m.