Skip to content

r-lib/showimage

 
 

Repository files navigation

showimage

Show an Image on an R Graphics Device

R-CMD-check Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN RStudio mirror downloads Codecov test coverage

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

Stable version:

devtools::install_github("r-lib/showimage")

Development version:

pak::pak("r-lib/showimage")

Usage

library(showimage)
png(tmp <- tempfile(fileext = ".png"))
pairs(iris)
dev.off()
show_image(tmp)

plot of chunk screenshot

License

GPL-2 | GPL-3 © Mango Solutions, Simon Urbanek, RStudio

About

Show an image on the R graphics device

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 96.9%
  • Makefile 3.1%