cara membuat Data dalam bentuk vektor
#create sample data
X <- c(15, 17, 19, 20, 22, 36, 50)
Y <- c(150, 200, 235, 220, 300, 310, 400)
#print sample
X
## [1] 15 17 19 20 22 36 50
Y
## [1] 150 200 235 220 300 310 400
Y = a + bx
Y = 170 + 17X
## scatter plot
plot(Y -X, ylab="Y" , pch=20)
#systematic Relationship to the point
abline(a =310, b=-40)
library(readxl) data <- read_excel(“C:/Users/User/Downloads/Realisasi_Belanja_Kabupaten_Kota_Sulut_BPS.xlsx”) New names: •
-> `...2` •->...3•-> `...4` •->...5•-> `...6` •->...7•-> `...8` •->...9• `->…10`