Re: [R] demo creating

2011-09-16 Thread Duncan Murdoch
On 16/09/2011 10:53 AM, John Clark wrote: My question was not related to embedding R codes in powerpoint / word, rather I need to execute some of the commands in sequential way in R, so that I do not need to type them. This is similar to what you get when you use the following demo: require(latt

Re: [R] demo creating

2011-09-16 Thread jim holtman
I use NotePad++ and keep the source in there and then can highlight and copy over to the R session by pressing a key. You can easily extend this with the use of AutoHotKey to make it dependent on a mouse click if you wanted. On Fri, Sep 16, 2011 at 10:53 AM, John Clark wrote: > My question was n

Re: [R] demo creating

2011-09-16 Thread Jean-Christophe BOUËTTÉ
looking at the code of example I found that: oldask <- grDevices::devAskNewPage(ask = TRUE) x <- rnorm(1000) hist(x) plot(x) plot(x^2) grDevices::devAskNewPage(oldask) which will do what you want in terms of displaying plots with a pause. 2011/9/16 John Clark : > My question was not related to e

Re: [R] demo creating

2011-09-16 Thread John Clark
My question was not related to embedding R codes in powerpoint / word, rather I need to execute some of the commands in sequential way in R, so that I do not need to type them. This is similar to what you get when you use the following demo: require(lattice); demo(lattice) So I want to put my co

Re: [R] demo creating

2011-09-16 Thread Duncan Murdoch
On 15/09/2011 10:22 PM, John Clark wrote: R experts: I want to prepare a demo (that will play sequentially in clicks) for a presentation tutorial...Can somebody help me how can I write a demo, suppose the following are steps in the demo.. #start set.seed(1345) x1<- sample(letters[1:10], 5) x1 s

Re: [R] demo creating

2011-09-16 Thread Jean-Christophe BOUËTTÉ
Hi, it is not clear to me what your exact request is. If you want to integrate R code in a presentation, using sweave with the beamer class is an option. 2011/9/15 John Clark : > R experts: > > I want to prepare a demo (that will play sequentially in clicks) for a > presentation tutorial...Can some

[R] demo creating

2011-09-15 Thread John Clark
R experts: I want to prepare a demo (that will play sequentially in clicks) for a presentation tutorial...Can somebody help me how can I write a demo, suppose the following are steps in the demo.. #start set.seed(1345) x1 <- sample(letters[1:10], 5) x1 sort(x1) x <- sample(1:10, 5) y <- sample(c