Re: [R] Newbie error or bug?

2006-03-13 Thread Paul Vickers
That also works and is even more concise.Many thanks, Paul Uwe Ligges wrote: > Your error: > If you use plot(), the coordinate system of user coordinates is set up > each time, but you do want to plot in the coordinate system of your > first plot, hence use: > > > plot(time, signal, type = "l

Re: [R] Newbie error or bug?

2006-03-13 Thread Uwe Ligges
Your error: If you use plot(), the coordinate system of user coordinates is set up each time, but you do want to plot in the coordinate system of your first plot, hence use: plot(time, signal, type = "l", col = "blue", xaxs = "r", yaxs = "r", xlab = "Time (msec)", ylab = "Signal", main = "

[R] Newbie error or bug?

2006-03-13 Thread Paul Vickers
Hi I used R for the first time yesterday. I wanted to plot the aliasing effect of sampling a 5.5KHz sinusoid at only 8KHz (below the Nyquist limit). So I wrote a small R script that a) plots 1msec worth of a 5.5KHz sin wave b) plots 1msec of the resulting 2.5KHz alias and c) plots the 8 sampling