Skip to content

how to plot a nice legend

1 message · Franklin Bretschneider

#
Dear Jonas Stein,


You may add a line defining a large margin to harbour the legend,
such as:

	par(mai=c(0.5, 0.5, 0.5, 1.8))   #  enlarged right margin
	plot(1:10)
	legend("right", legend=c("one", "two"), inset=-0.2, xpd=NA)


Kind regards,



Franklin Bretschneider
--
Dept Biologie
Kruytgebouw W711
Padualaan 8
3584 CH Utrecht
The Netherlands