Description Usage Arguments Value Note Author(s) See Also Examples
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
).
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)
|
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 |
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 |
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 |
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. |
An erp y axis is drawn on an existing plot.
This function is called internally by the erp
function.
Giorgio Arcara
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.