Get plot() bounding box values

前端 未结 3 1991
盖世英雄少女心
盖世英雄少女心 2020-12-19 05:15

I\'m generating numerous plots with xlim and ylim values that I\'m calculating on a per-plot basis. I want to put my legend outside the plot area (

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 05:41

    The oma, omd, and omi arguments of par() control boundaries and margins of plots - they can be queried using par()$omd (etc). and set (if needed) using par(oma=c()) (where the vector can have up to 4 values - see ?par)

提交回复
热议问题