######plot(pred, "contour", xlab="Humidex", key.title=title("RR值"),cex.title=1.2,cex.axis=1.2,
plot.axes={axis(1,cex.axis=1.2)
axis(2,cex.axis=1.2)},
key.axes = axis(4,cex.axis=1.2),
plot.title=title(xlab="温湿指数",ylab="滞后天数",cex.main=1.2,cex.lab=1.2))
下图为运行结果:
通过key.title设置font.main=3来只改变RR值为斜体 ,参考例子:
data(volcano)
filled.contour(volcano, color = terrain.colors, asp = 1)# simple
x <- 10*1:nrow(volcano)
y <- 10*1:ncol(volcano)
filled.contour(x, y, volcano, color = terrain.colors,
plot.title = {par(cex.main=1);title(main = "The Topography of Maunga Whau",
xlab = "Meters North", ylab = "Meters West")},
plot.axes = { axis(1, seq(100, 800, by = 100))
axis(2, seq(100, 600, by = 100)) },
key.title = {par(cex.main=1);title(main="Height\n(meters)",font.main=3)},
key.axes = axis(4, seq(90, 190, by = 10),asp=1))# maybe also asp=1
如对你有帮助,请点击采纳。