R Visualization

You use the R visualization widget to create and edit visualization based on R scripts. By setting the relevant properties, you can change the size and style of the widget.

The R visualization widget is used in both stories and analytic applications. Only the specifics for the analytics designer are listed here. For how to create an R visualization and general restrictions, you can refer to Add R Visualizations to Stories.

Note

For managed R server, now three more language strings are supported: Chinese, Japanese, and Korean. To display these language strings, make sure you write extra R script like below:

Sys.setlocale("LC_ALL", "zh_CN.UTF-8")
Sys.setlocale("LC_ALL", "ja_JP.UTF-8")
Sys.setlocale("LC_ALL", "ko_KR.UTF-8")

After adding an R script and displaying the running result as visualization on the main canvas, you can write scripts, for example, to customize the local data source, set input parameters as numbers or strings, get input parameter as numbers or strings and check if there's any error when executing R scripts. More detailed information about the APIs is available in Analytics Designer API Reference.