Description Usage Arguments Value Examples
Show an Image on an R Graphics Device
1 2  | 
file | 
 Name of the image file to show.  | 
mar | 
 Margin, the   | 
axes | 
 Whether to show the axes. You need to increase the margin to see the axis labels.  | 
frame.plot | 
 Whether to draw a frame around the plot.  | 
asp | 
 Aspect ratio parameter for   | 
... | 
 Additonal arguments are passed to   | 
Nothing.
1 2 3 4 5 6 7 8  | rlogo <- system.file("img", "Rlogo.png", package="png")
show_image(rlogo)
## Create a plot in a PNG and show it
png(tmp <- tempfile(fileext = ".png"))
pairs(iris)
dev.off()
show_image(tmp)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.