If you just want the same symbol at each point, you could use Weylandt's
approach, tho' personally I think it's tidier to create a new vector
x10 <- x[seq(1,length(x),by=10)] and plot that.
If you would like a different symbol at each point, then take a look at
?text.
From: R. Michael
Try something like this:
plot(x,type="o", pch = c(5,rep(NA,9)))
for, e.g., every 10th point.
Michael Weylandt
On Fri, Oct 21, 2011 at 5:18 PM, zugi young wrote:
> Hi,
>
> I would like to produce a plot with a symbol on every nth point in a time
> series data, like the one in the following:
>
>
Hi,
I would like to produce a plot with a symbol on every nth point in a time
series data, like the one in the following:
http://www.phon.ucl.ac.uk/home/yi/ProsodyPro/EnglishFocus.png
x <- seq(-100,1000,25)
plot(x,type="l")
Could someone help me out with the above example?
Thanks
3 matches
Mail list logo