SlideShare a Scribd company logo
R Visualizations in SAP Analytics Cloud
R Visualizations in SAP Analytics Cloud
➢ R is an open-source programming language that includes packages for advanced visualizations, Statistics, Machine Learning and
much more.
➢ SAP Analytics Cloud R Visualization feature allows users to integrate their own R environment into SAP Analytics Cloud.
➢ The benefit of this is that people all over the world continue to invest a lot of time and energy into creating new and interesting
types of statistical charts and graphs that you can use to analyze and present your data.
➢ Another benefit of integrating R visualizations with SAP Analytics Cloud is that it’s flexible. You can change the chart type,
characteristics, and depict your information in a variety of ways.
➢ With this new integration in SAP Analytics Cloud, you can now:
• Insert R-visualizations into your story
• Interact with R-visualizations using SAP Analytics Cloud-controls (such as filters)
• Share these SAP Analytics Cloud stories, which include R-visualizations, with other users.
➢ With the R visualization capability, users are able to perform statistical and analytical analyses and create truly captivating visuals
to reflect these analyses.
➢ Also, it is important to note that these visualizations remain interactive and consider the row-level security of users.
➢ To add R visualizations to a story, you need to have an R server running and connected to SAP Analytics Cloud.
➢ This connection is typically handled by an administrator and includes the server or host address, port number, certificate for
encryption, and user credentials.
Prerequisites
➢ Before we get started with our visualizations we can check a couple of things. First, make sure you are connected with an R
Server.
➢ To do so your user must have admin rights. Otherwise, please ask your system admin user for help. Different options are available
for example you may use your own R Server or use the SAP R Server. To do so go into the main menu and press “Administration”
under the point “System”:
➢ Then proceed to “R Configuration” at the top of the screen.
➢ Check if you are connected to the SAP R sever runtime environment or to your remote R connection. If this is the case, we can
proceed with our tutorial using the R Visualization in the SAC.
➢ Second, let’s have a look at our profile setting and make sure the number formatting is set to “1,234.56”. Otherwise, the dataset
won’t be recognized correctly in the SAC.
Using R with SAP Analytics Cloud
➢ You can use SAP Analytics Cloud to create and edit visualizations based on R scripts. R is an integrated suite of software that
includes packages for advanced visualizations and statistics to perform the following tasks:
• Insert R visualizations into your stories.
• Interact with your visualizations, using controls such as filters.
• Edit your R scripts and preview visualizations.
• Share stories containing R visualizations with other users. With the R visualization capability, users are able to perform statistical
and analytical analyses and create charts reflecting these analyses. These visualizations remain interactive and consider the row-
level security of users.
➢ The following resources are provided to help users:
• The requisite code snippet for listing all the available packages installed on your R system.
• Sample R scripts for visual statistical analysis.
• A dashboard containing an R script editor, a snapshot of the environment after the R script is run, a console containing the output
of the executed script, and a preview screen for the visualization.
7 June 2020Presentation titlePage 7
Section divider over two lines or three
lines
Section divider over two lines
or three lines
Adding R Visualizations to Stories
Adding R Visualizations to Stories
➢ You can insert an R visualization into a story by running R scripts on an externally deployed R environment, or an R server
runtime environment deployed by SAP Analytics Cloud if it available in your region.
Procedure:
1. From the Insert menu on the story canvas, select + (Add) > R Visualization.
• An empty R visualization is added to the canvas page.
2. To configure the input data for the R visualization:
a. Select +Add Input Data under INPUT DATA.
The Select Datasource dialog is displayed.
Note
If a data source has already been added to the story, it will be used by default.
b. Choose a model from the Select and Existing Model list and select OK.
c. Use the Table Structure settings to specify the table structure for your input data.
1.From the Insert menu on the story canvas, select
Note
Select the (Expand) icon under Designer to view a Preview for the input data table structure.
• ROWS: select +Add Dimensions to add dimensions from the list of available options into your input data. Hover over a dimension
to display the (More) icon if you want to specify display options or attributes. Use the Manage Filters icon to specify filters for
the dimension.
Note
To create a dynamic input control for a given dimension, select the Manage Filters icon and enable the Allow viewers to modify
selections option.
• COLUMNS: is used to manage the available measures. Select All Members to display the currently available measures. Hover over
a column entry to display the (More) icon if you want to specify display options or attributes. Use the Manage Filters icon to
specify filters for the measures.
• FILTERS: is used to manage the filters for the input data. Select +Add Filters to specify filters. Use Advanced Filtering to create
filters based on multiple dimensions by defining a set of logical conditions.
d. When you have finished setting up the table structure, select OK.
1.From the Insert menu on the story canvas, select
Note
Your input data can be directly referenced as a data frame in the R script editor. Remember the name used for the input data or,
alternatively, click the displayed entry to specify a new name.
3. To configure an input parameter for your visualization:
a. Under INPUT PARAMETERS, select an input control from the following options:
• If the story already contains calculation input controls, select +Add Input Parameter and choose any of the listed parameters.
• To create a new calculation input control, select +Add Input Parameter +Create a New Calculation Input Control.
The Calculation Input Control dialog is displayed.
b. Provide a name for the input parameter.
1.From the Insert menu on the story canvas, select
Note
Your input parameters can be directly referenced in the R script editor. Remember the name used for the parameter or, alternatively,
click the current name to specify a new name.
c. Select Existing Dimension to allow users to pick from members of a dimension, or Static List to add custom values as options for
the input control.
For Existing Dimension:
i. Select a model, select a dimension, and then select Click to Add Values.
ii. Select values from the list of available members.
If you select Exclude selected members, all members except the ones selected will be included in the input control. You can use
(Search) to find specific values. When you expand the list beside the search icon, you can choose to view the member Description, ID
and Description, or ID.
iii. Expand the Settings for Users section, and then choose whether users can do the following in the input control: Single
Selection, Multiple Selection, or Multiple Selection Hierarchy.
iv. Select OK.
1.From the Insert menu on the story canvas, select
For Static List:
d. Select Click to Add Values and choose either Select by Range or Select by Member.
i. If you have selected Select by Range, enter the Min and Max values for your range in the Set Values for Custom Range dialog.
You can optionally set an Increment value.
ii. Select OK.
iii. To create a member based input control, add numeric values to the Custom Members area in the Select Values from Custom
LOV dialog, and then select Update Selected Members.
iv. Expand the Settings for Users section, and then choose whether users can do the following in the input control: Single Selection,
or Multiple Selection.
v. Select OK.
4. Under Script, select + Add Script to create a new script, or Edit Script if a script has previously been specified.
The Script panel is displayed over the Designer.
5. Select the (Expand) icon under Designer to view the Editor, Environment, Console, and Preview panes.
1.From the Insert menu on the story canvas, select
6. Enter your script in the Editor and select Execute.
Note
• A list of suggested code is displayed if you press ctrl + space or if there are multiple suggestions based on the characters you have
typed in the Editor.
• Based on your coding context, the available R functions, data frames, R packages, vectors, arguments, input parameters, and
function lists appear on the left with a corresponding description (if available) on the right.
• To reference a data frame, enter the three letters of the data frame name. All data frame and input data names are preceded by
the icon. All input parameter names are preceded by the icon.
If the script is processed successfully, the following is displayed:
• The variables from the script output are listed in Environment.
• The outputted code from the executed script is displayed in Console.
• Any visualization rendered by the executed script is displayed in Preview.
1.From the Insert menu on the story canvas, select
Note
• Sample scripts to render R based visualizations are provided for your convenience. Go to <>(Snippets) > Examples to access the
samples.
• The code and visualizations rendered by these samples are for instructional purposes.
• If you have the requisite R programming background, you can use these samples to generate visualizations based on your data.
7. Select Apply to insert the R visualization into the current canvas page.
Note
You cannot export interactive HTML content to PDF. You cannot use remote or key figure models as input data. All hierarchies in
models are flattened when working with R.
1.From the Insert menu on the story canvas, select
Adding R Visualizations to Stories
➢ Once you have checked the connection, you can create a story from a data model already on SAP Analytics Cloud.
➢ By choosing insert and R visualization, this allows you to indicate that you want to include a visualization as result from a script
from R. It is important to indicate that you only can add visualization, but you can run any kind of R-script once you have validated
the required libraries.
1.From the Insert menu on the story canvas, select
➢ Which will generate the following frame on the Canvas:
➢ In the ‘Builder’-framework there are two important options:
• Input Data: to import the data into the R Visualization;
• Script: to use the R Script Editor, which applies the R Script on the imported data.
1.From the Insert menu on the story canvas, select
➢ After having imported the data, using the ‘Add Script’-functionality will give the following consoles to work with:
• Editor: R Script should be incorporated here.
• Console: displays what is being executed (either successfully, or else it will display error messages).
• Environment: additional information, such as the name of the imported dataset.
• Preview: preview of the results of the R Script that has been added in the Editor framework.
1.From the Insert menu on the story canvas, select
➢ When starting to add R Script in the Editor, there is an auto-complete wizard, just like in the R Studio for example:
➢ Please note that in general you will of course start with the library( …) statements, to initialize the R Script packages that are
installed by default. But, it is also possible to just use simple statements, such as ‘plot(…)’:
1.From the Insert menu on the story canvas, select
➢ Where executing will result in the following R Visualization:
1.From the Insert menu on the story canvas, select
7 June 2020Presentation titlePage 20
Section divider over two lines or three
lines
Section divider over two lines
or three lines
ggplot2 Visualizations Hands-On Examples
Composition - Pie Chart:
➢ Pie chart, a classic way of showing the compositions is equivalent to the waffle chart in terms of the information conveyed. But is
a slightly tricky to implement in ggplot2 using the coord_polar().
Correlation - Scatter Plot:
➢ The most frequently used plot for data analysis is undoubtedly the scatterplot. Whenever you want to understand the nature of
relationship between two variables, invariably the first choice is the scatterplot.
Diverging Bars:
➢ Diverging Bars is a bar chart that can handle both negative and positive values.
Correlation - Bubble plot:
➢ While scatterplot lets you compare the relationship between 2 continuous variables, bubble chart serves well if you want to
understand relationship within the underlying groups based on:
• A Categorical variable (by changing the color) and Another continuous variable (by changing the size of points).
Dynamic Grouping of values in Pie-chart:
➢ R Script to display top 9 and group rest as “others” in Pie Chart.
Dynamic Grouping of values in Pie-chart:
Ranking - Dot Plot:
➢ Dot plots are very similar to lollipops, but without the line and is flipped to horizontal position.
➢ It emphasizes more on the rank ordering of items with respect to actual values and how far apart are the entities with respect to
each other.
R Visualizations in SAP Analytics Cloud
Ad

More Related Content

What's hot (20)

Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
confluent
 
AWS Cloud Watch
AWS Cloud WatchAWS Cloud Watch
AWS Cloud Watch
zekeLabs Technologies
 
Intro on Oracle Application express - APEX
Intro on Oracle Application express - APEXIntro on Oracle Application express - APEX
Intro on Oracle Application express - APEX
Lino Schildenfeld
 
Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Use the SAP Content Server for Your Document Imaging and Archiving Needs!Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Verbella CMG
 
Introduction to Dell Boomi
Introduction to Dell BoomiIntroduction to Dell Boomi
Introduction to Dell Boomi
Srivathsa B H
 
GOTOpia 2020 - Balancing Choreography and Orchestration
GOTOpia 2020 - Balancing Choreography and OrchestrationGOTOpia 2020 - Balancing Choreography and Orchestration
GOTOpia 2020 - Balancing Choreography and Orchestration
Bernd Ruecker
 
Data ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics CloudData ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics Cloud
Madhumita Banerjee
 
Introduction to Data Engineering
Introduction to Data EngineeringIntroduction to Data Engineering
Introduction to Data Engineering
Hadi Fadlallah
 
Microsoft azure
Microsoft azureMicrosoft azure
Microsoft azure
Mohammad Ilyas Malik
 
Migration to sap s4 hana
Migration to sap s4 hanaMigration to sap s4 hana
Migration to sap s4 hana
Марина Ковалёва
 
Cloud Service Models
Cloud Service ModelsCloud Service Models
Cloud Service Models
Abhishek Pachisia
 
PowerBI Training
PowerBI Training PowerBI Training
PowerBI Training
Knowledge And Skill Forum
 
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
Amazon Web Services Korea
 
On-premise to Microsoft Azure Cloud Migration.
 On-premise to Microsoft Azure Cloud Migration. On-premise to Microsoft Azure Cloud Migration.
On-premise to Microsoft Azure Cloud Migration.
Emtec Inc.
 
Abap proxy
Abap proxyAbap proxy
Abap proxy
Ganesh Kumar
 
Paas
PaasPaas
Paas
NikunjPansari
 
What is AWS Cloud Watch
What is AWS Cloud WatchWhat is AWS Cloud Watch
What is AWS Cloud Watch
jeetendra mandal
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
SAP and Public Cloud
SAP and Public CloudSAP and Public Cloud
SAP and Public Cloud
Pete Nieminen
 
Cloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best PracticesCloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best Practices
QBurst
 
Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
Kafka Connect: Real-time Data Integration at Scale with Apache Kafka, Ewen Ch...
confluent
 
Intro on Oracle Application express - APEX
Intro on Oracle Application express - APEXIntro on Oracle Application express - APEX
Intro on Oracle Application express - APEX
Lino Schildenfeld
 
Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Use the SAP Content Server for Your Document Imaging and Archiving Needs!Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Use the SAP Content Server for Your Document Imaging and Archiving Needs!
Verbella CMG
 
Introduction to Dell Boomi
Introduction to Dell BoomiIntroduction to Dell Boomi
Introduction to Dell Boomi
Srivathsa B H
 
GOTOpia 2020 - Balancing Choreography and Orchestration
GOTOpia 2020 - Balancing Choreography and OrchestrationGOTOpia 2020 - Balancing Choreography and Orchestration
GOTOpia 2020 - Balancing Choreography and Orchestration
Bernd Ruecker
 
Data ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics CloudData ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics Cloud
Madhumita Banerjee
 
Introduction to Data Engineering
Introduction to Data EngineeringIntroduction to Data Engineering
Introduction to Data Engineering
Hadi Fadlallah
 
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
Amazon Web Services Korea
 
On-premise to Microsoft Azure Cloud Migration.
 On-premise to Microsoft Azure Cloud Migration. On-premise to Microsoft Azure Cloud Migration.
On-premise to Microsoft Azure Cloud Migration.
Emtec Inc.
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
SAP and Public Cloud
SAP and Public CloudSAP and Public Cloud
SAP and Public Cloud
Pete Nieminen
 
Cloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best PracticesCloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best Practices
QBurst
 

Similar to R Visualizations in SAP Analytics Cloud (20)

Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
EPC Group
 
Report painter in SAP
Report painter in SAPReport painter in SAP
Report painter in SAP
Rajeev Kumar
 
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_contentSaphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
mgassperera
 
Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)
Doria Hamelryk
 
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERPMr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Sami JAMMALI
 
Ssrs tutorial
Ssrs tutorialSsrs tutorial
Ssrs tutorial
abhishekbanerjee
 
Sure Outputs
Sure OutputsSure Outputs
Sure Outputs
SAP Sure
 
rabidminer_Teamddsfa dfasdfasd fadfas.pptx
rabidminer_Teamddsfa dfasdfasd fadfas.pptxrabidminer_Teamddsfa dfasdfasd fadfas.pptx
rabidminer_Teamddsfa dfasdfasd fadfas.pptx
mahmoodhamdy63
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
Bhushan Rajgure
 
Aia session2 (1)
Aia session2 (1)Aia session2 (1)
Aia session2 (1)
aiclub_slides
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting Services
Thejaswi shasthri
 
Analytics with Power BI and R
Analytics with Power BI and RAnalytics with Power BI and R
Analytics with Power BI and R
Naresh R. Jasotani
 
What types of data sources does Tableau support.docx
What types of data sources does Tableau support.docxWhat types of data sources does Tableau support.docx
What types of data sources does Tableau support.docx
Technogeeks
 
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
CHANDRASEKHAR REDROUTHU
 
Sas visual analytics Training
Sas visual analytics Training Sas visual analytics Training
Sas visual analytics Training
bidwhm
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
Brad Ganas
 
SAC_Planning.pdf
SAC_Planning.pdfSAC_Planning.pdf
SAC_Planning.pdf
Roth-williams Adjibi
 
Pa2 session 3
Pa2 session 3Pa2 session 3
Pa2 session 3
aiclub_slides
 
Visual basic
Visual basicVisual basic
Visual basic
KavithaAlagumalai
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
KavithaAlagumalai
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
EPC Group
 
Report painter in SAP
Report painter in SAPReport painter in SAP
Report painter in SAP
Rajeev Kumar
 
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_contentSaphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
mgassperera
 
Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)
Doria Hamelryk
 
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERPMr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Sami JAMMALI
 
Sure Outputs
Sure OutputsSure Outputs
Sure Outputs
SAP Sure
 
rabidminer_Teamddsfa dfasdfasd fadfas.pptx
rabidminer_Teamddsfa dfasdfasd fadfas.pptxrabidminer_Teamddsfa dfasdfasd fadfas.pptx
rabidminer_Teamddsfa dfasdfasd fadfas.pptx
mahmoodhamdy63
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
Bhushan Rajgure
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting Services
Thejaswi shasthri
 
What types of data sources does Tableau support.docx
What types of data sources does Tableau support.docxWhat types of data sources does Tableau support.docx
What types of data sources does Tableau support.docx
Technogeeks
 
Sas visual analytics Training
Sas visual analytics Training Sas visual analytics Training
Sas visual analytics Training
bidwhm
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
Brad Ganas
 
Ad

Recently uploaded (20)

Stack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptxStack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptx
binduraniha86
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Stack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptxStack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptx
binduraniha86
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Ad

R Visualizations in SAP Analytics Cloud

  • 1. R Visualizations in SAP Analytics Cloud
  • 2. R Visualizations in SAP Analytics Cloud ➢ R is an open-source programming language that includes packages for advanced visualizations, Statistics, Machine Learning and much more. ➢ SAP Analytics Cloud R Visualization feature allows users to integrate their own R environment into SAP Analytics Cloud. ➢ The benefit of this is that people all over the world continue to invest a lot of time and energy into creating new and interesting types of statistical charts and graphs that you can use to analyze and present your data.
  • 3. ➢ Another benefit of integrating R visualizations with SAP Analytics Cloud is that it’s flexible. You can change the chart type, characteristics, and depict your information in a variety of ways. ➢ With this new integration in SAP Analytics Cloud, you can now: • Insert R-visualizations into your story • Interact with R-visualizations using SAP Analytics Cloud-controls (such as filters) • Share these SAP Analytics Cloud stories, which include R-visualizations, with other users. ➢ With the R visualization capability, users are able to perform statistical and analytical analyses and create truly captivating visuals to reflect these analyses. ➢ Also, it is important to note that these visualizations remain interactive and consider the row-level security of users. ➢ To add R visualizations to a story, you need to have an R server running and connected to SAP Analytics Cloud. ➢ This connection is typically handled by an administrator and includes the server or host address, port number, certificate for encryption, and user credentials.
  • 4. Prerequisites ➢ Before we get started with our visualizations we can check a couple of things. First, make sure you are connected with an R Server. ➢ To do so your user must have admin rights. Otherwise, please ask your system admin user for help. Different options are available for example you may use your own R Server or use the SAP R Server. To do so go into the main menu and press “Administration” under the point “System”: ➢ Then proceed to “R Configuration” at the top of the screen. ➢ Check if you are connected to the SAP R sever runtime environment or to your remote R connection. If this is the case, we can proceed with our tutorial using the R Visualization in the SAC.
  • 5. ➢ Second, let’s have a look at our profile setting and make sure the number formatting is set to “1,234.56”. Otherwise, the dataset won’t be recognized correctly in the SAC.
  • 6. Using R with SAP Analytics Cloud ➢ You can use SAP Analytics Cloud to create and edit visualizations based on R scripts. R is an integrated suite of software that includes packages for advanced visualizations and statistics to perform the following tasks: • Insert R visualizations into your stories. • Interact with your visualizations, using controls such as filters. • Edit your R scripts and preview visualizations. • Share stories containing R visualizations with other users. With the R visualization capability, users are able to perform statistical and analytical analyses and create charts reflecting these analyses. These visualizations remain interactive and consider the row- level security of users. ➢ The following resources are provided to help users: • The requisite code snippet for listing all the available packages installed on your R system. • Sample R scripts for visual statistical analysis. • A dashboard containing an R script editor, a snapshot of the environment after the R script is run, a console containing the output of the executed script, and a preview screen for the visualization.
  • 7. 7 June 2020Presentation titlePage 7 Section divider over two lines or three lines Section divider over two lines or three lines Adding R Visualizations to Stories
  • 8. Adding R Visualizations to Stories ➢ You can insert an R visualization into a story by running R scripts on an externally deployed R environment, or an R server runtime environment deployed by SAP Analytics Cloud if it available in your region. Procedure: 1. From the Insert menu on the story canvas, select + (Add) > R Visualization. • An empty R visualization is added to the canvas page. 2. To configure the input data for the R visualization: a. Select +Add Input Data under INPUT DATA. The Select Datasource dialog is displayed. Note If a data source has already been added to the story, it will be used by default. b. Choose a model from the Select and Existing Model list and select OK. c. Use the Table Structure settings to specify the table structure for your input data. 1.From the Insert menu on the story canvas, select
  • 9. Note Select the (Expand) icon under Designer to view a Preview for the input data table structure. • ROWS: select +Add Dimensions to add dimensions from the list of available options into your input data. Hover over a dimension to display the (More) icon if you want to specify display options or attributes. Use the Manage Filters icon to specify filters for the dimension. Note To create a dynamic input control for a given dimension, select the Manage Filters icon and enable the Allow viewers to modify selections option. • COLUMNS: is used to manage the available measures. Select All Members to display the currently available measures. Hover over a column entry to display the (More) icon if you want to specify display options or attributes. Use the Manage Filters icon to specify filters for the measures. • FILTERS: is used to manage the filters for the input data. Select +Add Filters to specify filters. Use Advanced Filtering to create filters based on multiple dimensions by defining a set of logical conditions. d. When you have finished setting up the table structure, select OK. 1.From the Insert menu on the story canvas, select
  • 10. Note Your input data can be directly referenced as a data frame in the R script editor. Remember the name used for the input data or, alternatively, click the displayed entry to specify a new name. 3. To configure an input parameter for your visualization: a. Under INPUT PARAMETERS, select an input control from the following options: • If the story already contains calculation input controls, select +Add Input Parameter and choose any of the listed parameters. • To create a new calculation input control, select +Add Input Parameter +Create a New Calculation Input Control. The Calculation Input Control dialog is displayed. b. Provide a name for the input parameter. 1.From the Insert menu on the story canvas, select
  • 11. Note Your input parameters can be directly referenced in the R script editor. Remember the name used for the parameter or, alternatively, click the current name to specify a new name. c. Select Existing Dimension to allow users to pick from members of a dimension, or Static List to add custom values as options for the input control. For Existing Dimension: i. Select a model, select a dimension, and then select Click to Add Values. ii. Select values from the list of available members. If you select Exclude selected members, all members except the ones selected will be included in the input control. You can use (Search) to find specific values. When you expand the list beside the search icon, you can choose to view the member Description, ID and Description, or ID. iii. Expand the Settings for Users section, and then choose whether users can do the following in the input control: Single Selection, Multiple Selection, or Multiple Selection Hierarchy. iv. Select OK. 1.From the Insert menu on the story canvas, select
  • 12. For Static List: d. Select Click to Add Values and choose either Select by Range or Select by Member. i. If you have selected Select by Range, enter the Min and Max values for your range in the Set Values for Custom Range dialog. You can optionally set an Increment value. ii. Select OK. iii. To create a member based input control, add numeric values to the Custom Members area in the Select Values from Custom LOV dialog, and then select Update Selected Members. iv. Expand the Settings for Users section, and then choose whether users can do the following in the input control: Single Selection, or Multiple Selection. v. Select OK. 4. Under Script, select + Add Script to create a new script, or Edit Script if a script has previously been specified. The Script panel is displayed over the Designer. 5. Select the (Expand) icon under Designer to view the Editor, Environment, Console, and Preview panes. 1.From the Insert menu on the story canvas, select
  • 13. 6. Enter your script in the Editor and select Execute. Note • A list of suggested code is displayed if you press ctrl + space or if there are multiple suggestions based on the characters you have typed in the Editor. • Based on your coding context, the available R functions, data frames, R packages, vectors, arguments, input parameters, and function lists appear on the left with a corresponding description (if available) on the right. • To reference a data frame, enter the three letters of the data frame name. All data frame and input data names are preceded by the icon. All input parameter names are preceded by the icon. If the script is processed successfully, the following is displayed: • The variables from the script output are listed in Environment. • The outputted code from the executed script is displayed in Console. • Any visualization rendered by the executed script is displayed in Preview. 1.From the Insert menu on the story canvas, select
  • 14. Note • Sample scripts to render R based visualizations are provided for your convenience. Go to <>(Snippets) > Examples to access the samples. • The code and visualizations rendered by these samples are for instructional purposes. • If you have the requisite R programming background, you can use these samples to generate visualizations based on your data. 7. Select Apply to insert the R visualization into the current canvas page. Note You cannot export interactive HTML content to PDF. You cannot use remote or key figure models as input data. All hierarchies in models are flattened when working with R. 1.From the Insert menu on the story canvas, select
  • 15. Adding R Visualizations to Stories ➢ Once you have checked the connection, you can create a story from a data model already on SAP Analytics Cloud. ➢ By choosing insert and R visualization, this allows you to indicate that you want to include a visualization as result from a script from R. It is important to indicate that you only can add visualization, but you can run any kind of R-script once you have validated the required libraries. 1.From the Insert menu on the story canvas, select
  • 16. ➢ Which will generate the following frame on the Canvas: ➢ In the ‘Builder’-framework there are two important options: • Input Data: to import the data into the R Visualization; • Script: to use the R Script Editor, which applies the R Script on the imported data. 1.From the Insert menu on the story canvas, select
  • 17. ➢ After having imported the data, using the ‘Add Script’-functionality will give the following consoles to work with: • Editor: R Script should be incorporated here. • Console: displays what is being executed (either successfully, or else it will display error messages). • Environment: additional information, such as the name of the imported dataset. • Preview: preview of the results of the R Script that has been added in the Editor framework. 1.From the Insert menu on the story canvas, select
  • 18. ➢ When starting to add R Script in the Editor, there is an auto-complete wizard, just like in the R Studio for example: ➢ Please note that in general you will of course start with the library( …) statements, to initialize the R Script packages that are installed by default. But, it is also possible to just use simple statements, such as ‘plot(…)’: 1.From the Insert menu on the story canvas, select
  • 19. ➢ Where executing will result in the following R Visualization: 1.From the Insert menu on the story canvas, select
  • 20. 7 June 2020Presentation titlePage 20 Section divider over two lines or three lines Section divider over two lines or three lines ggplot2 Visualizations Hands-On Examples
  • 21. Composition - Pie Chart: ➢ Pie chart, a classic way of showing the compositions is equivalent to the waffle chart in terms of the information conveyed. But is a slightly tricky to implement in ggplot2 using the coord_polar().
  • 22. Correlation - Scatter Plot: ➢ The most frequently used plot for data analysis is undoubtedly the scatterplot. Whenever you want to understand the nature of relationship between two variables, invariably the first choice is the scatterplot.
  • 23. Diverging Bars: ➢ Diverging Bars is a bar chart that can handle both negative and positive values.
  • 24. Correlation - Bubble plot: ➢ While scatterplot lets you compare the relationship between 2 continuous variables, bubble chart serves well if you want to understand relationship within the underlying groups based on: • A Categorical variable (by changing the color) and Another continuous variable (by changing the size of points).
  • 25. Dynamic Grouping of values in Pie-chart: ➢ R Script to display top 9 and group rest as “others” in Pie Chart.
  • 26. Dynamic Grouping of values in Pie-chart:
  • 27. Ranking - Dot Plot: ➢ Dot plots are very similar to lollipops, but without the line and is flipped to horizontal position. ➢ It emphasizes more on the rank ordering of items with respect to actual values and how far apart are the entities with respect to each other.