aL3xa/rapport — pull request #34 by daroczig (2012-01-29 20:23:30+00:00)
Title: Advanced settings: optional high resolution rendering and HTML image popups

I have updated `evals` (and fixed a few small bugs while that) to be able to render images in two stages:

* it produces images with given width/height and nominal resolution now,
* and also can produce another image with separate dimensions (which can be calculated by the prior parameters automatically).

I have also updated the HTML output to have a link to high resolution plots by default (if those were generated), and clicking on those will bring up `slimbox`. The JS part is 2 lines, it might be tweaked and CSS-ed (eg. mouseover etc.).

Examples:

```
rapport("example", ius2008, var="leisure", hist = TRUE, graph.hi.res = TRUE)
rapport.html("nortest", ius2008, var = "leisure", graph.hi.res=T)

## generating only high resolution image
rapport("example", ius2008, var="leisure", hist = TRUE, graph.width = 1280, graph.height = 1280)

## nested templates cannot get custom setting, use custom rapport option:
ptions('graph.hi.res' = TRUE)
rapport('descriptives-multivar', data=ius2008, vars=c("gender", 'age'))
```