使用boxplot做箱线图,若有多个样本x轴上不会显示所有样本的名称,这时可以使用las参数来修改。
```
png(file="test1.png")
boxplot(iris)
dev.off()
```
图1
```
png(file="test2.png")
boxplot(iris,main="test2",las=2)
dev.off()
```
图2
使用boxplot做箱线图,若有多个样本x轴上不会显示所有样本的名称,这时可以使用las参数来修改。
```
png(file="test1.png")
boxplot(iris)
dev.off()
```
```
png(file="test2.png")
boxplot(iris,main="test2",las=2)
dev.off()
```