Spacing Between Legend Entries - legend.position = "bottom"

210 views
Skip to first unread message

Lighton Phiri

unread,
Dec 10, 2012, 3:40:29 AM12/10/12
to ggp...@googlegroups.com
What properties can I use to create adequate spacing between legend
entries when I place a legend at the bottom on my plot? My legend
entries are too close together --see attachment.

--
Lighton Phiri
http://lightonphiri.org

ggplot2-legend-bottom.png

Brandon Hurr

unread,
Dec 10, 2012, 4:49:12 AM12/10/12
to Lighton Phiri, ggplot2
You can adjust the text size of the legend. 
Alternatively, you could play with the DPI settings of the output (?quartz(), ?windows(), ?x11(), or ?ggsave() ). 

If you want to simply spread them out more... I'm not sure. Attached is a transition document that Dennis Murphy put together that has all of the editable features (at least superficially) and I don't see how. 


--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2

theme0.html

Lighton Phiri

unread,
Dec 11, 2012, 1:15:00 PM12/11/12
to Brandon Hurr, ggplot2
Thanks, will give this a try.
Lighton Phiri
http://lightonphiri.org
>> To unsubscribe: email ggplot2+u...@googlegroups.com
>> More options: http://groups.google.com/group/ggplot2
>
>

Lighton Phiri

unread,
Dec 16, 2012, 2:53:26 AM12/16/12
to Brandon Hurr, ggplot2
I managed to sort this out using an approach Ista suggested in another
one of my posts [1] --basically appending spaces using 'paste'
function

[1] https://groups.google.com/forum/?fromgroups=#!topic/ggplot2/SIuWCxXC7MQ
Lighton Phiri
http://lightonphiri.org
Reply all
Reply to author
Forward
0 new messages