
emptyPlot(xlim, ylim, main = NULL, xlab = NULL, ylab = NULL, h0 = NULL,
v0 = NULL, bty = "n", eegAxis = FALSE, ...)
xlim
is a number, then it is assumed that the other value is 0.
Thus, xlim=3000
wil result in a x-axis ranging from 0 to 3000,
and xlim=-3
will resultxlim
) for more information.title
.mtext
for adding axis labels.xlab
.)par
.title
and
mtext
for drawing labels and titles;
use lines
and points
for plotting the data;
use legend
for adding a legend.
and acf_n_plots
for inspection of individual time series.Other Utility functions for plotting: addInterval
;
alphaPalette
; alpha
;
color_contour
; dotplot_error
;
errorBars
; fadeRug
;
fill_area
; find_difference
;
getCoords
; getFigCoords
;
gradientLegend
; horiz_error
;
plot_error
data(simdat)
test <- simdat[simdat$Subject=='a10' & simdat$Trial==10,]
emptyPlot(range(test$Time), range(test$Y),
main='Data', ylab='Y', xlab='Time',
h0=0, v0=c(0,1000,2000))
# Note that this is the same as:
emptyPlot(range(test$Time), range(test$Y))
title(main='Data', ylab='Y', xlab='Time')
abline(h=0)
abline(v=c(0,1000,2000), lty=3)
# To add data, use lines() and points()
lines(test$Time, test$Y)
Run the code above in your browser using DataLab