Professional Documents
Culture Documents
Data 1 Rufa
Data 1 Rufa
Data 1 Rufa
summary(data1)
sd(data1)
IQR(data1)
hist(data1)
boxplot(data1)
### How to build table frequency and draw histogram from raw data
bins <- seq(1,113,by=6) ### membuat kelas dengan memasukkan lebar kelas
> data1<-c(1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,5,5,10)
> summary(data1)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.000 1.000 2.000 2.368 3.000 10.000
> sd(data1)
[1] 1.699301
> IQR(data1)
[1] 2
> hist(data1)
> boxplot(data1)
> # add some information
> hist(data1,main="Histogram of data11",xlab="Histogram of data11",col="blue")
> ### How to build table frequency and draw histogram from raw data
> bins <- seq(1,113,by=8) ### membuat kelas dengan memasukkan lebar kelas
> ### How to build table frequency and draw histogram from raw data
> bins <- seq(1,113,by=6) ### membuat kelas dengan memasukkan lebar kelas
> loxplot(data1,main="Histogram of data11",xlab="Histogram of data11",col="pink")
Error in loxplot(data1, main = "Histogram of data11", xlab = "Histogram of data11", :
could not find function "loxplot"
> boxplot(data1,main="Histogram of data11",xlab="Histogram of data11",col="pink")