Skip to content
Back to formatted view

Raw Message

Message-ID: <403B927A.3000909@statistik.uni-dortmund.de>
Date: 2004-02-24T18:05:46Z
From: Uwe Ligges
Subject: Legends text
In-Reply-To: <a06020410bc612f903765@[192.168.2.3]>

Sebastien Durand wrote:

> Hi,
> 
> Is there a way to change the color of the text inside a legend, let say 
> I would like to use a black background in my legend, how can I get the 
> text to show up, it is black!!!
> So for example how could I change it to white...?
> 
> Sebastien
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

By setting par(fg = "white"):

  plot(1:10)
  par(fg="white")
  legend(2,2, col="white", legend="A", bg="black")

Uwe Ligges