Skip to content
Prev 20351 / 29559 Next

Layering text outside the plot region in a levelplot

Hi, Jooil

You are using a mailing list devoted to spatial data. You should use
R-help (https://stat.ethz.ch/mailman/listinfo/r-help) or stackoverflow
(http://stackoverflow.com/tags/r) for this kind of questions.
Regarding your question, latticeExtra::layer modifies the panel
function used by levelplot. Therefore, what you include in layer()
will be displayed inside the panel area. This should work:

png("output.png")
p
grid.text('here and there', x=.98, y=.5, rot=-90,
          gp = gpar(col=4,
              fontfamily="HersheyGothicEnglish", cex=2))
dev.off()


Best,

Oscar.
-----------------------------------------------------------------
Oscar Perpi??n Lamigueiro
Dpto. Ingenier?a El?ctrica (ETSIDI-UPM)
Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: http://oscarperpinan.github.io
Twitter: @oscarperpinan


2014-02-07 Jooil Kim <kji2080 at gmail.com>: