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,
Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Steve Murray
> Sent: September-23-08 12:57 PM
> To: r-help@r-project.org
> Subject: [R] Creating a Legen
Dear all,
I'm trying to create a legend for my graph. I hope to have the title as "Land
Use Type" and the two elements being "Urban" and "Rural" with a red point and
green point respectively. So far I have the following command, but obviously it
isn't correct:
> legend("topright", title="Land
3 matches
Mail list logo