显示 X 和 Y 轴并使用 spplot 更改它们的范围

Showing the X and Y axes and changing their range with spplot

我正在尝试使用 R 中的 spplot 函数绘制空间数据。虽然按照我的标准我的绘图看起来不错,但我正在尝试弄清楚如何更改可视化范围并显示它们的 X 轴和 Y 轴。

我目前正在像这样使用 spplot 函数:

 spplot(no2_surf.idw['var1.pred'],main = 'interpolated no2 surface concentrations',ylim<- c(latv[200],latv[40]), xlim <- c(lonv[60],lonv[180]))

使用 xlim 和 ylim 指定我的输出范围,但它根本没有改变我绘制的输出。

我也不知道如何在显示的图表上显示坐标轴。

以下是我的输出图,我打算用它放大一个城市。

以下是我显示输出的代码。

 spplot(no2_surf.idw['var1.pred'],main = 'interpolated no2 surface concentrations',ylim<- c(latv[200],latv[40]), xlim <- c(lonv[60],lonv[180]))

目前,我没有从我的代码中得到任何 "Zooming"。

@jtr13 帮助回答了这个问题!需要使用等号而不是箭头。谢谢@jtr13!