How to annotate across or between plots in multi-plot panels in R

前端 未结 4 585
耶瑟儿~
耶瑟儿~ 2020-12-18 00:33

If I have several plots in a single panel, I would like to be able to put text annotations that go across more than one plot area or that go in between plot areas. I\'m sure

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 01:17

    For this example the layout function is simplest as has been already shown, but for more general cases you should also learn the grconvertX and grconvertY functions (along with setting clipping using par(xpd=. The convert functions can give you the coordinates in the current user coordinates for different coordinate systems, so for example you could center something on the page by converting 0.5 from the normalized device coordinates.

提交回复
热议问题