Add text out of levelplot panel area
问题 I want to add text out of plot area in levelplot. In the following example, I need the text in somewhere in the pointed location. library (raster) library(rasterVis) f <- system.file("external/test.grd", package="raster") r <- raster(f) levelplot(r) I tried mtext function with no success. Any suggestions? mtext("text", side=3, line=0) 回答1: tldr; You can annotate the plot using lower-level grid graphical functions. In this case, do something like: library(grid) seekViewport("plot_01.legend.top