# 2020-09-22

R语言图形初级
str(Formaldehyde)
attach(Formaldehyde)
boxplot(Formaldehyde,col=“red”,yilm=c(0,1),
main=list(“测甲醛浓度时分光光度计读数箱线图”,
font=4, col=“red” , cex=1.5),
sub=list(“数据来源:Formaldehyde”,font=4,
col=“blue” , cex=1),
xlab=“方法”,ylab=“num”)
detach(Formaldehyde)

str(Formaldehyde)
attach(Formaldehyde)
boxplot(carb,col=“violet”,ylim=c(0,1),outline=F)
points(rep(1,3),carb[2:4],pch=21,bg=c(“blue”,“red”,“black”),cex=1.2)
detach(Formaldehyde)

attach (Formaldehyde)
str (Formaldehyde)
plot(carb,type=“l”,ylab="",ylim=c(0,1))
lines(optden,type=“l”,col=“blue”)
detach(Formaldehyde)

attach (Formaldehyde)
par(mfrow=c (2,2))
hist(Formaldehyde,8,xlab=“个人储蓄率”, ylab=“频数”, col=“blue”,
main=“个人储蓄率直方图（较少区间）”)
detach(Formaldehyde)

attach (Formaldehyde)
par(mfrow=c(1,2))
plot(carb,pch=21,bg=c(“red”),
main=list(“carb测甲醛浓度时分光光度计读数箱线图”,
font=4, col=“yellow” , cex=1.5))
plot(optden,pch=22,bg=c(“blue”),
main=list(“optden测甲醛浓度时分光光度计读数箱线图”,
font=4, col=“yellow” , cex=1.5))
detach(Formaldehyde)

06-09 1955
05-09 883

07-20 85
05-22 195
05-15 274