Plot: Create Custom Empty Base R Plot.

Description Usage Arguments Value Examples

Description

Plot creates an empty plot with axes of suitable limits so as to include all data points. Plot created is then ready for points or lines or bars (etc.) overlay.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Plot(
  data = NULL,
  x,
  y,
  ...,
  yerr = NULL,
  subset = NULL,
  x0 = FALSE,
  y0 = FALSE,
  adjUsr = 0.9,
  xAsFactor = FALSE
)

Arguments

data

A dataframe with at least 'x' & 'y' data fields.

x

A vector if 'data' is NULL or field name in 'data' for the x axis.

y

A vector if 'data' is NULL or field name in 'data' for the y axis.

...

Passed to other methods. Currently not used.

yerr

A vector if 'data' is NULL or field name in 'data' for the y axis error bars. Currently not such parameter for x error bars.

subset

Logical expression to be evaluated in 'data' or for 'x' & 'y'.

x0

Logical. True if x-axis minimum value should be 0. Default False.

y0

Logical. True if y-axis minimum value should be 0. Default False.

adjUsr

Numeric. User to ajust par("usr") mostly to smaller size, as the default is 0.90 (thus a 10% reduction).

xAsFactor

Logical. True if x-axis should be a factor. Defaul = FALSE.

Value

A list (to be detailed later).

Examples

1
# coming soon.

jasondubois/sportfish documentation built on July 3, 2020, 1:01 p.m.