Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 R 的 levelplot 中更改栅格和标题之间的垂直空间?例如,对于我尝试过的额外 2 行空间
r <- raster::raster( matrix(runif(9),3,3) ) rasterVis::levelplot(r, margin=FALSE, main=list('My plot',line=2) )
一种简单的方法是在标题中添加空行
rasterVis::levelplot(r, margin=FALSE, main=list('My plot\n'))
rasterVis::levelplot(r, margin=FALSE, main=list('My plot',y=grid::unit(-2, "mm")))