[R] Add annotation text outside of an xyplot (lattice package)
rhurlin at gwdg.de
Sat Sep 24 08:49:00 CEST 2016
one possible solution is to use ltext().
ltext(xcoord, ycoord, label="TEST", adj=c(0.5,0.5))
You have to know or to find out best fitting coordinates.
Via adj you can control, if the text should adjust left, center or right
to the coords, and above, center or bottom of them.
Am 22.09.2016 um 16:04 schrieb Jun Shen:
> Dear list,
> Just wonder if there is a way to add annotation text outside an xyplot,
> (e.g. the bottom of the plot). the panel.text seems only add text within
> the plot. Thanks.
More information about the R-help