Description Usage Arguments Details Value Note Author(s) Examples
Export a graphic in JPEG, PNG, PDF or SVG format and create a html link on the output.
1 2 3 4 |
x |
- NULL for a standard plot, ggplot2 otherwise |
filename |
- a string, the file name without extension |
Title |
- a string, the text of the link |
format |
- a vector string, the file format c("png","pdf","jpg","csv") |
plot.width |
- an integer, width of plot, only used by standard plots not ggplot |
plot.height |
- an integer, height of plot, only used by standard plots not ggplot |
Files are exported in the subdirectory "exports". If this directory does not exists, it will be created. You can export in multiple formats at the same time.
Return nothing.
The chunk where the function is called in, must have option "echo = asis"
jp.decorps@epiconcept.fr
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.