Skip to content
Prev 157115 / 398506 Next

Creating a Legend

Hi,

I think you want the following,

df <- data.frame(x=rnorm(100), y=rnorm(100))
plot(df)
legend("topright", title="Land Use Type", cex=0.75, pch=16,
		col=c("red", "green"),legend=c("Urban", "green"), ncol=2)


I could not find a way to have a different text size for the title,  
but it's easy to do in lattice or ggplot2.

Baptiste
On 23 Sep 2008, at 17:56, Steve Murray wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag