Quantcast
Channel: SCN : All Content - SAP BusinessObjects Predictive Analytics
Viewing all articles
Browse latest Browse all 836

Custom R Component - Interactive 3D Plot

$
0
0

This component adds an interactive 3D plot to SAP Predictive Analysis. Three measures are displayed in three dimensions and the user can look at the data from any angle.

 

 

Disclaimer

Please note that this component is provided as-is without any guarantee or support.

 

Prerequisites

- R library rgl must be installed.

- The component expects two columns in the dataset that specify the color and the data label. If these columns are not available, they can be added with a formula component.

 

Limitations

- Once the chart has been displayed, the component's configuration has to be changed (ie change any of the measures) to display the chart again.

 

 

Usage

These parameters can be set by the user.

ParameterDescription
X AxisNumerical column to be displayed on the x axis.
Y AxisNumerical column to be displayed on the y axis.
Z AxisNumerical column to be displayed on the z axis.
Color ColumnColumn for colour-coding individual datapoints. Can be numerical or text.
Label Column

Column that provides the labels for the datapoints.


No output columns added by this component.

 

How to Implement

The component can be downloaded from github. The content of the .zip file is the Custom R Component and needs to be deployed as described here. You just need to copy the content in a folder described in the article and restart SAP Predictive Analysis.

 

Example

You can try out the component wtih our own data or with the file attached to this article. The attached dataset lists 75 European cities and their residents' satisfaction with a number of aspects of life, ie the availabilty of good jobs, green spaces or affordable living. More information on this dataset is given in the article on hierarchical clustering. The result of that clustering is stored in a separate column in the attached file and will be used for the color-coding of the interactive 3D plot.


Just load your data in SAP Predictive Analysis, add the "Interactive 3D Plot" to your workflow and configure it:
scr2.JPG


Now run the component and the new window with the interactive chart opens up. Click with the mouse on the chart and look at the data from different angles.

screenshot.JPG

 

When you are done with the chart just close the window. You will then be asked whether you want to jump to the tabular view of the data ("OK") or whether you want to stay on the Designer view ("Cancel").

scr3.JPG


Viewing all articles
Browse latest Browse all 836

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>