On 11/10/2012 1:08 PM, mamush bukana wrote:
Dear users,
I am preparing a presentation in latex(beamer) . I would like to show parts
of my plots per click. Example, consider I have two time series x and y:

x<-ts(rnorm(100), start=1900,end=1999)
y<-ts(rnorm(100), start=1900,end=1999)
plot(x)
lines(y,col=2)

Then I imported this plot into latex as ".eps" file. My question is, how
can i show plot of each time series separately in sequence (one after the
other). An also I want to show parts of the plots at different time
segments in my presentation. To be honest, I don't know if these features
are in R or in latex.

Mostly Latex/Beamer. Draw the two versions of the plot, and tell beamer to show the first one only on overlay 1, the second only on overlay 2.

This is particularly easy using Sweave, because you can save the code that drew the first plot and re-use it in the second.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to