[R] Legend: Custom distance between lines and text

peter dalgaard pdalgd at gmail.com
Sat Jun 9 13:20:38 CEST 2012


On Jun 9, 2012, at 13:04 , Sebastian Schubert wrote:

> Hi,
> 
> I guess I overlook the corresponding part in the manual but how can I
> modify the distance between the text and the line in a legend?
> 
> Thank you for any hints!

You mean like this?

plot(0)
legend(1, .5, legend=c("foo","bar"), lty=1:2, pch=NA)
legend(1, .25, legend=c("foo","bar"), lty=1:2, pch=NA, x.intersp=2)


-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list