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.
In this section, create a variety of graphics by loading compatible packages and calling functions.
- If your data has location information, such as a latitude column and a longitude column, and you want to create an interactive map, you can use the leaflet package.
- If your data has location information, such as latitude and longitude from around the world, and you want to create three-dimensional, interactive map graphics, you can use the threejs package.
- If your data has time and date columns, and you want to create a line graph, you can use the dygraphs package.
- Creating a Plot with TERR and dygraphs
If you have time and date data, you can create a line plot showing trends with the TERR-compatible, JavaScript-enabled dygraphs package. - Mapping data with TERR and leaflet
If your data has location columns (latitude and longitude), you can retrieve data using the dplyr package, and then create a map chart using the TERR-compatible, Javascript-enabled leaflet package. - Creating a 3D Interactive Map with TERR and threejs
If your data has location columns (latitude and longitude) from around the globe, and you want the user to be able to interact with the globe, you can create a graphic using the TERR-compatible threejs package. - Creating an Interactive Scatterplot Cloud with TERR and threejs
If you want to create an interactive scatterplot, you can use thescatterplot3js
function from the threejs package.
- Creating a Plot with TERR and dygraphs
If you have time and date data, you can create a line plot showing trends with the TERR-compatible, JavaScript-enabled dygraphs package. - Mapping data with TERR and leaflet
If your data has location columns (latitude and longitude), you can retrieve data using the dplyr package, and then create a map chart using the TERR-compatible, Javascript-enabled leaflet package. - Creating a 3D Interactive Map with TERR and threejs
If your data has location columns (latitude and longitude) from around the globe, and you want the user to be able to interact with the globe, you can create a graphic using the TERR-compatible threejs package. - Creating an Interactive Scatterplot Cloud with TERR and threejs
If you want to create an interactive scatterplot, you can use thescatterplot3js
function from the threejs package.
Parent topic: Graphics in Spotfire Enterprise Runtime for R
Related concepts