How to use R language to draw all kinds of statistical charts in SAP Analytics Cloud
In this issue, the editor will bring you about how to use R language to draw various statistical charts in SAP Analytics Cloud. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Insert an R visualization:
Make sure that the small icon of the model appears in the graph, and that the model data representing the R visualization is successfully bound before you can proceed to the next step:
After the model is successfully bound, the model data can be seen in the Data drop-down menu on the Environment tab of the R script editor.
Use the excel file provided in the official SAP Analytics Cloud tutorial as the data source:
Https://www.rial-r-visualization/https://www.ontent/uploads/2019/09/R-Script-Plot.txt
# Discription:# Creating a histogram of the log returns, adding the kernel density of the log returns# and the normal density as reference distribution # # Requirements: # ggplot requires a data frame# # Output:# Histogram Plot# library (ggplot2) Simulated_data