Sebastian Schubert
2012-Jun-09 11:04 UTC
[R] Legend: Custom distance between lines and text
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! Sebastian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120609/422fa934/attachment.bin>
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
Sebastian Schubert
2012-Jun-09 15:33 UTC
[R] Legend: Custom distance between lines and text
On 09/06/12 13:20, peter dalgaard wrote:>> 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)Thanks a lot. I think I even tried x.intersp before, worked fine now. Sebastian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120609/d5ec8a81/attachment.bin>