matrix layout in plot legend

16 views
Skip to first unread message

Asaf Weinstein

unread,
Dec 23, 2014, 4:08:47 AM12/23/14
to israel-r-user-group
Hi everyone,
Is it possible to generate a legend in R with neither a horizontal nor vertical layout, but instead a "matrix" layout, say 2-by-2?

Thank you,
Asaf

Jonathan Rosenblatt

unread,
Dec 23, 2014, 6:41:23 AM12/23/14
to israel-r-user-group
Are you using graphics? lattice? ggplot2?

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Rosenblatt
www.john-ros.com

Asaf Weinstein

unread,
Dec 24, 2014, 1:06:18 AM12/24/14
to israel-r-user-group
Not any of these..

Jonathan Rosenblatt

unread,
Dec 24, 2014, 1:13:43 AM12/24/14
to israel-r-user-group
then with what package are you creating the plots?

Asaf Weinstein

unread,
Dec 24, 2014, 6:20:21 PM12/24/14
to israel-r-user-group
Sorry - I am using the 'graphics' package..
Thanks Jonathan

Liad Shekel

unread,
Dec 25, 2014, 2:07:52 AM12/25/14
to Israel R User Group
plot(1)
legend("topleft", c(1:6), letters[1:6], ncol = 3, pch = 1:4, inset = 0.01, bg = "grey80")
:-)

Asaf Weinstein

unread,
Dec 25, 2014, 2:13:11 AM12/25/14
to israel-r-user-group
Toda Liad!
Reply all
Reply to author
Forward
0 new messages