This chapter presents how to read and write images with R in vector and raster formats. Different packages providing procedures for input and output are available. For vector formats, the package grImport is used. It provides functions for reading vector images and also for manipulation. In the case of raster images, the main packages available for input are: pixmap, png, rtiff, ReadImages, EBImage and bmp. These packages, and additionally the jpeg library, are used for writing in raster formats. In order to write an image in vector formats, some devices as postscript, pdf, and svg can be used. The new support for rendering raster formats in R is also presented in this chapter. The main advantages of using this new support is the better scaling, faster rendering, and smaller graphics files.
CITATION STYLE
Frery, A. C., & Perciano, T. (2013). Reading and writing images with R: Generating high quality output. In SpringerBriefs in Computer Science (Vol. 0, pp. 31–41). Springer. https://doi.org/10.1007/978-1-4471-4950-7_3
Mendeley helps you to discover research relevant for your work.