View source: R/render_vignette.R
add_vignette | R Documentation |
Takes an RGB array/filename and adds a camera vignette effect.
add_vignette(...)
... |
Arguments to pass to |
3-layer RGB array of the processed image.
if(run_documentation()){
#Plot the dragon
plot_image(dragon)
}
if(run_documentation()){
#Add a vignette effect:
add_vignette(dragon, preview = TRUE, vignette = 0.5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.