we <- c(55,60,70,75,75)

we2 <- c(155,160,170,175,175)

mean(we)      #平均數
## [1] 67
median(we)    #中位數
## [1] 70
min(we)
## [1] 55
max(we)
## [1] 75
as.numeric(names(table(we)))[which.max(table(we))] 
## [1] 75
sd(we)  #標準差
## [1] 9.082951
var(we) #變異數
## [1] 82.5
plot(we,we2,
     pch = 17,
     col= "skyblue",
     main ="班上的體重與身高",
     xlab ="體重",
     ylab ="身高")

hist(we,
     col= "lightyellow",
     main ="班上的體重與身高",
     xlab ="體重",
     ylab ="次數")

mean(we)
## [1] 67
data<- c(50,23,35,48)
labels <- c("英文系","法文系","德文","翻譯")

pie(data,labels,main ="學生的比例", col=heat.colors(length(data)))