How to use a “R-generated” plot as a semi-transparent background in an HTML5 slide made by knitr?
I want to add a plot to my first page of the (HTML5) slide. Can I achieve this in a dynamically way? Say, the background image will be generated by R code, rather than insert a semi-transparent PNG image. Thank you. Update : What I want is You can use the chunk option dev.args to achieve this. You will need to size the image correctly to fit your slide. ```{r dev.args = list(bg = 'transparent')} plot(1:10, 1:10) ``` This chunk will generate a transparent png. Please read the documentation ? png to get a list of arguments you can pass. Here is one useful piece onf info from the docs. png