[R-sig-Geo] add legend to plot(spatialpolygonsdataframe)
Paulo Eduardo Cardoso
paulo.mailing.list at gmail.com
Wed Jul 28 11:02:17 CEST 2010
Thanks Roman,
I'm plotting polygons, filled with a custom colour pallete.
How can this be reproduced in the legend?
Paulo
2010/7/28 Roman Luštrik <roman.lustrik at gmail.com>:
> If I'm not mistaking, ?legend and ?plot (arguments main, xlab, ylab) should
> work.
>
> plot(data, main = "Chart title", xlab = "Title for the x axis", ylab =
> "Title for the y axis")
> legend(...)
>
> HTH,
> Roman
>
>
>
> On Wed, Jul 28, 2010 at 10:28 AM, Paulo Eduardo Cardoso
> <paulo.mailing.list at gmail.com> wrote:
>>
>> How can one compose a plot, adding legend, title, and axis titles to a
>> plot of spatial object like a spatialpolygonsdataframe?
>> Any comment will be appreciated
>> Paulo
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
>
> --
> In God we trust, all others bring data.
>
More information about the R-sig-Geo
mailing list