R 我如何使CEX为plot工作?
考虑下面的例子R 我如何使CEX为plot工作?,r,plot,R,Plot,考虑下面的例子 pdf("Test.pdf") plot(1:23, 2:24, type="l", col="blue", main="Test Title", xlab="# of Clients", ylab="Throughput (kops/sec)",ylim=c(1,27), cex=2) lines(1:23, 3:25, col="red") legend(1, 300, c("First Line","Second Line"), lty=c(1,1), lwd=c(2.
pdf("Test.pdf")
plot(1:23, 2:24, type="l", col="blue", main="Test Title", xlab="# of Clients", ylab="Throughput (kops/sec)",ylim=c(1,27), cex=2)
lines(1:23, 3:25, col="red")
legend(1, 300, c("First Line","Second Line"), lty=c(1,1), lwd=c(2.5,2.5),col=c("blue","red"))
dev.off()
当我将CEX参数从2调整为1或3时,我希望所有文本的大小都会发生变化,但什么也没有发生
我做错了什么?参数
cex
仅适用于打印的符号,并且您正在绘制线条和注释
要更改批注中文本的大小,请使用cex.axis
和friends,有关详细信息,请参阅帮助(par)
对于
pdf
驱动程序,您可能会通过pointsize
参数获得一些乐趣:例如pdf(“foo.pdf”,pointsize=20)
。有关更多选项,请参见帮助(pdf)
。参数cex
仅适用于打印的符号,并且您正在绘制线条和注释
要更改批注中文本的大小,请使用cex.axis
和friends,有关详细信息,请参阅帮助(par)
对于
pdf
驱动程序,您可能会通过pointsize
参数获得一些乐趣:例如pdf(“foo.pdf”,pointsize=20)
。有关更多选项,请参见help(pdf)
。参见?par
particualry,cex.main
,cex.axis
cex.lab
etcsee?par
particualry,cex.main
,cex.axis
cex.lab