Nothing
This demos shows you how to optimize PNG images with optipng
.
library(knitr) opts_chunk$set(cache=TRUE) knit_hooks$set(optipng = hook_optipng)
Now we set the chunk option optipng
to a non-NULL
value, e.g. ''
, to activate the hook.
library(methods) library(ggplot2) set.seed(123) qplot(rnorm(1e3), rnorm(1e3))
Same plot, not optimized:
Same plot, most heavily optimized (pass -o7
to optipng
):
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.