[R] demo creating

Jean-Christophe BOUËTTÉ jcbouette at gmail.com
Fri Sep 16 15:12:21 CEST 2011


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 <rosbreed.pba at gmail.com>:
> 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(11:20), 5)
> require(lattice)
> plot(x,y)
> z <- rnorm(5, 1, 0.5)
> dataframe <- data.frame(x, y, z)
> model1 <- lm(y ~x)
> aov(model1)
> #end
> Please help me, I could not get proper function / package to it.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list