Abstract
This article describes an approach to importing vector-based graphical images into statistical software as implemented in a package called grImport for the R statistical computing environment. This approach assumes that an original image can be transformed into a PostScript format (i.e., the original image is in a standard vector graphics format such as PostScript, PDF, or SVG). The grImport package consists of three components: a function for converting PostScript files to an R-specific XML format; a function for reading the XML format into special Picture objects in R; and functions for manipulating and drawing Picture objects. Several examples and applications are presented, including annotating a statistical plot with an imported logo and using imported images as plotting symbols.
Highlights
One of the important features of statistical software is the ability to create sophisticated statistical plots of data
Stating the issue more generally, this article is concerned with the ability to import graphical images that have been generated using third party software into a statistical software system so that the images can be manipulated within the statistical software, including incorporating the images within statistical plots
The solution that is described in this article for importing vector graphics into statistical software is implemented in an R package called grImport
Summary
One of the important features of statistical software is the ability to create sophisticated statistical plots of data. This is one example of the problem that is addressed in this article. Stating the issue more generally, this article is concerned with the ability to import graphical images that have been generated using third party software into a statistical software system so that the images can be manipulated within the statistical software, including incorporating the images within statistical plots
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have