我正在使用函数timePlot
(来自openair),我想修复y轴的限制。为此,我应该选择auto.text=FALSE
,但我不知道如何为每个物种指定值。例如:
require(openair)
timePlot(selectByDate(mydata, year = 1998, month = 1), pollutant =
+ c("nox", "no2"),
y.relation="free",lwd = c(1, 2),lty=c(1,1),auto.text=FALSE)
所以,如果我想定义nox的限制,比如0 500和no2 0,80 ..(只是为了更改值),我怎么能这样做? 有什么建议??
提前致谢!
答案 0 :(得分:0)
如果您愿意一次绘制一个,那么您可以从ylim
传递lattice
选项:
require(openair)
data(mydata)
timePlot(selectByDate(mydata, year = 1998, month = 1), pollutant = c("nox"), y.relation="free",
lwd = c(1, 2),lty=c(1,1),auto.text=FALSE, ylim = c(0, 500))
timePlot(selectByDate(mydata, year = 1998, month = 1), pollutant = c("no2"), y.relation="free",
lwd = c(1, 2),lty=c(1,1),auto.text=FALSE, ylim = c(0, 80))