library(ggplot2)
par(cex.lab=3,
cex.axis=3,
mar=c(5,3,2,1)
)
boxplot(Sepal.Length~Species,data=iris,
boxwex=.7,at=1:3+0.8,boxlwd=2,
xaxt="n",yaxt="n",lwd=2)
axis(1,at=c(1.8,2.8,3.8),labels=c("SE","VE","VI"),tick = TRUE, line = NA,
pos = NA, outer = FALSE, font = NA,family="RMN",
lwd = 2, lwd.ticks = 2, col = "black", col.ticks = "black")
axis(2,line=NA,family="B",
pos = NA, outer = FALSE, font = NA, lty = "solid")
title(xlab="Species",family="B",
ylab="Sepal.Length",family="B")
box(lty=1,lwd=2)
我对此图片有三个问题:
1,如何调整卷轴和轴之间的距离,标签“ SE”,“ VE”,“ VI”与x轴重叠?
2,如何调整倾斜(“种类”)和标签(“ VE” ..)之间的距离?
3,绘制图像后如何保存该图像,当我改变高度和宽度时,文本的大小总是会改变。那么保存图像时使用什么参数?
我有太多问题,非常感谢您的帮助。