這期內容當中小編將會給大家?guī)碛嘘P如何使用R語言在SAP Analytics Cloud里繪制各種統(tǒng)計圖表,文章內容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
成都創(chuàng)新互聯(lián)公司是一家專注于成都做網(wǎng)站、成都網(wǎng)站設計、成都外貿(mào)網(wǎng)站建設與策劃設計,白銀區(qū)網(wǎng)站建設哪家好?成都創(chuàng)新互聯(lián)公司做網(wǎng)站,專注于網(wǎng)站建設十載,網(wǎng)設計領域的專業(yè)建站公司;建站業(yè)務涵蓋:白銀區(qū)等地區(qū)。白銀區(qū)做網(wǎng)站價格咨詢:18982081108插入一個R visualization:
一定要確保圖形出現(xiàn)這個model的小圖標,代表這個R visualization的模型數(shù)據(jù)成功綁定之后才能進行下一步操作:
模型綁定成功后,在R script編輯器Environment標簽頁的Data下拉菜單里能看到模型數(shù)據(jù)。
使用這個SAP Analytics Cloud官方教程里提供的excel文件作為數(shù)據(jù)源:
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 <- data.frame(Simulated_data) histgg <- ggplot(data = Simulated_data, aes(logreturns)) histgg + geom_histogram(aes(y = ..density..),fill = "lightblue",color = "black", alpha = 0.8, position = "identity") + geom_density(aes(color = "Kernel Density"), size = 1) + stat_function(aes(color = "Normal Distribution"), fun = dnorm, args = list(mean = mean(Simulated_data$logreturns), sd = sd(Simulated_data$logreturns)), size = 1) + ggtitle("Histogram") + theme(panel.grid = element_line(linetype = "dashed", color = "lightgrey"), panel.background = element_rect(fill = "white"), panel.border = element_rect(colour = "black", fill=NA), plot.title = element_text(hjust = 0.5)) + scale_colour_manual("Density", values = c("red", "darkgreen")) + xlab(" ")+ ylab("Frequency")
點擊Execute按鈕,就可以看到R腳本繪制出來的圖形了:
上述就是小編為大家分享的如何使用R語言在SAP Analytics Cloud里繪制各種統(tǒng)計圖表了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司行業(yè)資訊頻道。
網(wǎng)站欄目:如何使用R語言在SAPAnalyticsCloud里繪制各種統(tǒng)計圖表-創(chuàng)新互聯(lián)
URL分享:http://chinadenli.net/article26/dhgscg.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供關鍵詞優(yōu)化、企業(yè)建站、搜索引擎優(yōu)化、手機網(wǎng)站建設、自適應網(wǎng)站、云服務器
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)