Description Usage Arguments See Also Examples
Either data
or file
must be passed.
1 2 3 4 5 6 7 |
data |
The data as a |
file |
The path to a file or a |
width |
The width to display the image |
height |
The height to display the image |
1 2 3 4 5 6 7 8 9 | ## Not run: ## (Run inside of an IRkernel)
display_png(file = 'image.png')
display_svg('
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 2 2">
<circle r="1"/>
</svg>
')
display_jpeg(file = url('https://dummyimage.com/600x400.jpg', 'wb'), width = 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.