aL3xa/rapport — pull request #33 by daroczig (2012-01-29 00:30:09+00:00)
Title: Lattice extra

A totally new template system is implemented which uses `lattice` graphical parameters. Based on `latticeExtra`, several more themes are also available. I am not sure about adding `latticeExtra` to package deps, as we use not much from that after all. We'll see :)

All `rp.graph` function changed accordingly & tested, for a quick demo run:

```
decorate.lattice(histogram(mtcars$hp))
decorate.lattice(bwplot(decrease ~ treatment, OrchardSprays, groups = rowpos), grid='none')
decorate.lattice(bwplot(decrease ~ treatment, OrchardSprays, groups = rowpos), grid='y')
decorate.lattice(barchart(VADeaths), theme="ggplot2like", grid='x')

rp.hist(ius2008$edu)
rp.hist(ius2008$edu, kernel.smooth=TRUE)
rp.densityplot(ius2008$edu, facet = ius2008$gender)
rp.barplot(ius2008$game, facet = ius2008$dwell, horizontal = FALSE, layout = c(1,3))
rp.scatterplot(ius2008$edu, ius2008$age, facet=ius2008$gender)
rp.boxplot(ius2008$age, ius2008$gender)
rp.boxplot(ius2008$age, ius2008$dwell, facet = ius2008$gender)
rp.qqplot(ius2008$age, qunif, facet = ius2008$gender)
rp.qqplot(ius2008$age, panel = function(x) {panel.qqmath(x); panel.qqmathline(x, distribution = qnorm)} )
```