showimage
Show an Image on an 'R' Graphics Device
Sometimes it is handy to be able to view an image file on an 'R' graphics device. This package just does that. Currently it supports 'PNG' files.
README
```{r, setup, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(
comment = "#>",
tidy = FALSE,
error = FALSE,
fig.path = "inst/",
fig.width = 8,
fig.height = 8)
```
# showimage
> Show an Image on an R Graphics Device
[](http://www.repostatus.org/#active)
[](https://travis-ci.org/r-lib/showimage)
[](https://ci.appveyor.com/project/gaborcsardi/showimage)
[](http://www.r-pkg.org/pkg/showimage)
[](http://www.r-pkg.org/pkg/showimage)
[](https://codecov.io/github/r-lib/showimage?branch=master)
Sometimes it is handy to be able to view an image file on an
R graphics device. This package just does that. Currently it supports
PNG files.
## Installation
```{r eval = FALSE}
devtools::install_github("r-lib/showimage")
```
## Usage
```{r results = "hide"}
library(showimage)
png(tmp <- tempfile(fileext = ".png"))
pairs(iris)
dev.off()
show_image(tmp)
```
## License
GPL-2 | GPL-3 © [Mango Solutions](https://github.com/mangothecat),
Simon Urbanek, [RStudio](https://github.com/rstudio)
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
1.0.0 |
2026-04-09 windows/windows R-4.5 | showimage_1.0.0.zip |
15.0 KiB |