Graphics in TIBCO Enterprise Runtime for R
This guide provides examples and suggestions for using TIBCO® Enterprise Runtime for R (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.
- JavaScript-Enabled Packages
You can use the TERR-compatible CRAN packages that take advantage of JavaScript to generate graphs, plots, and map visualizations, and then display them in a browser and save them as graphic images. - Displaying a Linear Model on a Scatterplot with ggvis
If you want to create an interactive graph that is similar to one you can create in ggplot2, you can install the ggvis package. - Calling RGraph to Create an Image File with the TERR RinR Package
The RinR package provides functions that can start other versions of TERR or open-source R. Using the RinR functionRGraph
, you can create a graph in open-source R, and then just view the graph or save it as an image file to share with others. - Generating TERR Graphics in Spotfire Using Predictive Modeling
Spotfire supports using the TERR engine to create built-in predictive analytics, writing expression functions for ad hoc analysis, or writing more sophisticated scripts to call hand-crafted data functions. The type of prediction to undertake is determined by your data and the kind of an analysis you need to do.
- JavaScript-Enabled Packages
You can use the TERR-compatible CRAN packages that take advantage of JavaScript to generate graphs, plots, and map visualizations, and then display them in a browser and save them as graphic images. - Displaying a Linear Model on a Scatterplot with ggvis
If you want to create an interactive graph that is similar to one you can create in ggplot2, you can install the ggvis package. - Calling RGraph to Create an Image File with the TERR RinR Package
The RinR package provides functions that can start other versions of TERR or open-source R. Using the RinR functionRGraph
, you can create a graph in open-source R, and then just view the graph or save it as an image file to share with others. - Generating TERR Graphics in Spotfire Using Predictive Modeling
Spotfire supports using the TERR engine to create built-in predictive analytics, writing expression functions for ad hoc analysis, or writing more sophisticated scripts to call hand-crafted data functions. The type of prediction to undertake is determined by your data and the kind of an analysis you need to do.