[R] Output (graphics and table/text)

Ralf B ralf.bierig at gmail.com
Thu Aug 5 00:02:41 CEST 2010


Hi R Users,

I need to produce a simple report consisting of some graphs and a
statistic. Here simplification of it:

# graphics output test
a <- c(1,3,2,1,4)
b <- c(2,1,1,1,2)
c <- c(4,7,2,4,5)
d <- rnorm(500)
e <- rnorm(600)
op <- par(mfrow=c(3,2))
pie(a)
pie(b)
pie(c)
text(ks.test(d,e))

obviously, the ks.test does not make it to the output. How can this be
archived by a) simply dumpting the text into the fourth quad so that
coordination is relative to the quarter? b) the output is actually
presented as a little table without the need to use a LaTeX solution?

Thanks a lot,
Ralf



More information about the R-help mailing list