Spotfire® Enterprise Runtime for R

Graphics in Spotfire Enterprise Runtime for R

This guide provides examples and suggestions for using Spotfire® Enterprise Runtime for R ( a/k/a TERR™) in Spotfire, with the RinR package, and with CRAN packages (such as htmlwidgets) that work with TERR™ to display graphics in a web browser.

TERR as a statistical programming language and runtime engine was developed to be compatible with open-source R, and to be integrated in other systems, such as KNIME, Hadoop, and RStudio. Historically, it was developed to be included with the analyst versions of Spotfire, so data visualizations using the statistical power of TERR could be created in Spotfire.

This graphical capability provided by Spotfire allowed TERR engineers to concentrate on open-source R language and package compatibility, power, and speed. However, the need to produce graphics exists, and you can take advantage of tools and packages to produce high-quality graphs with TERR.
Note: Not all graphics functions from open-source R are supported in TERR; however, most have stub functions so calling them will not cause the program to fail. The RGB package produces an image, but because of unimplented functions, using this package causes TERR to fail. When you try your own code from the examples using the packages described here, you might see warnings about unimplemented functions.