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 (
xlim
ylim
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)
par()
par()$omd
par(oma=c())