Skip to content
Back to formatted view

Raw Message

Message-ID: <6.1.2.0.0.20041104151435.04aa3720@10.0.10.66>
Date: 2004-11-04T14:19:58Z
From: Henric Nilsson
Subject: Legend placement in barplot?
In-Reply-To: <Pine.LNX.4.21.0411041315270.29228-100000@mail.mrc-dunn.cam .ac.uk>

At 13:24 2004-11-04 +0000, Dan Bolser wrote:

> >Check out gplots::smartlegend (in the R 2.0.0 gregmisc bundle).
>This works great, but like the (smart)legend function, fill=true appears
>to be giving me only black boxes.
>Here is what I add..
>smartlegend(x="left",y="top",
>             c("PDB","MSD"),
>             fill=TRUE,
>             col=c("red","blue")
>            )

For coloured boxes, use

smartlegend(x="left",
                    y="top",
                    c("PDB","MSD"),
                  fill=c("red","blue"))

HTH,
Henric