erp.yaxis: Draw an erp y axis

Description Usage Arguments Value Note Author(s) See Also Examples

Description

This function plots an y axis of an erp waveform. The position of the axis is determined according to three parameters: length.erp, startmsec and endmsec (the function calls msectopoints).

Usage

1
2
3
4
5
erp.yaxis(length.erp = NULL, startmsec=NULL, endmsec = NULL, y.tick=seq(-6,6,2), 
y.labels = y.tick, y.las=0, draw.y.ticks = TRUE, y.pos = NA,  y.outer = FALSE, 
y.font = NA, y.lty = "solid", y.lwd = 1, y.lwd.ticks = 1, y.col = NULL, 
y.col.ticks = NULL, y.hadj=NA, y.padj = NA, y.tcl = -0.5, y.tick.both= FALSE, 
y.cex = 1)

Arguments

length.erp

the length of the ERP vector the axis is referred to.

startmsec

the start time (in ms) of the ERP vector.

endmsec

the end time (in ms) of the ERP vector.

y.labels

the labels (usually a vector of numbers) to be plotted on the y axis.

y.las

the style of y axis labels.

draw.y.ticks

a logical value specifying whether y tickmarks and an axis line should be drawn.

y.pos

the position of y axis, in terms of x axis coordinates (in ms). Default is NA and the axis is drawn at the left of the plot.

y.tick

the position (in ms) of y ticks.

y.outer

a logical value indicating whether the y axis should be drawn in the outer plot margin, rather than the standard plot margin.

y.font

font for the text of y labels. Default is par("font").

y.lty

line type for both the y axis line and the y tick marks.

y.lwd

line width for the y axis line.

y.lwd.ticks

line width for the y tick marks.

y.col

colors for the y axis line and the y tick marks.

y.col.ticks

color for the y tick marks (if specified, overrides y.col)

y.hadj

adjustment (see par("adj")) for all y labels parallel ("horizontal") to the reading direction. If this is not a finite value, the default is used (centring for strings parallel to the axis, alignment of the end nearest the axis otherwise).

y.padj

adjustment for each y tick label purpendicular to the reading direction. For labels parallel to the axes, padj = 0 means right or top alignment, and padj = 1 means left or bottom alignment. This can be a vector given a value for each string, and will be recycled as necessary.

y.tcl

The length of tick marks as a fraction of the height of a line of text. The default value is -0.5.

y.tick.both

Logical. Should the tick marks be drawn both above and below the y axis?

y.cex

The magnification to be used for the y labels.

Value

An erp y axis is drawn on an existing plot.

Note

This function is called internally by the erp function.

Author(s)

Giorgio Arcara

See Also

erp, erp.xaxis

Examples

1
2
3
4
5
plot(1, ylim=c(-5,5), xlim=c(0,200), frame.plot=FALSE, 
type="n", axes=FALSE, xlab="", ylab="")

erp.yaxis(200, startmsec=-200, endmsec=1500, y.pos=0, 
y.lwd=2, y.tick=seq(-4,4,2))

erpR documentation built on June 7, 2019, 3 a.m.