[R] plots for presentation
Greg Snow
538280 at gmail.com
Fri Oct 12 22:20:15 CEST 2012
Duncan's answer is probably the easiest, but another alternative is to
use the tikz device instead of .eps files, then you can find the code
within the figure for the parts that you want to appear later and
enclose them in the beamer commands that will make them appear later.
Unfortunately this is not easy to automate, if you recreate the plot,
then you need to completely redo the inserting of the beamer commands.
On Thu, Oct 11, 2012 at 11:56 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> 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 at 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.
--
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com
More information about the R-help
mailing list