Skip to Content
Technical Articles

R visualisation in SAP Analytics Cloud – Part 2 ( Animated Scatterplot chart )

This is the continuation of my previous blog where I had showed the demo in SAC by creating gauge charts.  In this blog, we will try to create animated Scatter plot chart into SAC.

Definition of Scatter Plot chart :

A scatter plot (also called scatter graph, scatter chart, scattergram, or scatter diagram) is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for a set of data.

Example : A very nice example , I found on internet to understand  scatter plot chart and their use-cases.

“To display a link between a person’s lung capacity, and how long that person could hold their breath, a researcher would choose a group of people to study, then measure each one’s lung capacity (first variable) and how long that person could hold their breath (second variable). The researcher would then plot the data in a scatter plot, assigning “lung capacity” to the horizontal axis, and “time holding breath” to the vertical axis.

A person with a lung capacity of 400 cl who held their breath for 21.7 seconds would be represented by a single dot on the scatter plot at the point (400, 21.7) in the Cartesian coordinates. The scatter plot of all the people in the study would enable the researcher to obtain a visual comparison of the two variables in the data set, and will help to determine what kind of relationship there might be between the two variables.”

 Now, Let’s go and see how it behaves in SAC.

For this demo, I have mocked up data related to on Covid – 19 Cases. I have created 4 columns : Country, No of Confirmed Cases, Year Month, No of Deaths and Death Ratio and created a model on top of it.  Then , We have used this model in R script and created the animated Chart.

In this demo, our agenda is to analyse the number of confirmed cases( first variable)  and death ratio ( second variable ) by country and then plot the data in scatter plot assigning death rate ( No of Deaths / Confirmed cases ) to X axis and no of confirmed cases to Y axis.

Here is the video shows the animation in SAC  :

 

Summary :

With the R Visualization feature, SAP Analytics Cloud can reveal in-depth insights that help you make end-to-end decisions with confidence.

 

For Part 1,  Please go to the below link :

https://blogs.sap.com/2020/04/23/r-visualizations-in-sap-analytics-cloud-part-1-gauge-chart/

 

Thanks for reading!!!!!!!!!

 

1 Comment
You must be Logged on to comment or reply to a post.