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)

©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页