
library("ggplot2")
hist(Statistic,
col= "yellow",
main ="班上的體重與身高",
xlab ="分數",
ylab ="人數")

library("ggplot2")
hist(Statistic,
col= "green",
main ="大學生最喜歡參加的社團的次數分配表",
xlab ="編碼",
ylab ="次數")

data<- c(185,82,36,28,25,356)
labels <- c("娛樂休閒","知識閱讀","體育競技","科學創新","公益活動")
pie(data,labels,main ="大學生最喜歡參加的社團的次數分配表", col=heat.colors(length(data)))

Japanese<- c(84,63,61,49,89,51,59,53,79,91
)
stem(Japanese)
##
## The decimal point is 1 digit(s) to the right of the |
##
## 4 | 9
## 5 | 139
## 6 | 13
## 7 | 9
## 8 | 49
## 9 | 1
we <- c(55,60,70,75,75)
we2 <- c(155,160,170,175,175)
mean(we) #平均數
## [1] 67