On Mon, May 23, 2011 at 11:03 AM, Pierre Bruyer <[email protected]> wrote: > Hello everybody, > > I search a function which returns the contour of map with levels like > contourLines, but I would like this function return the border of the map > too, because the function contourLines cannot consider the corner of the map > and it is not adapted to fill polygon after that.
If you just need this information to draw a coloured map with, say, green between 0 and 100, yellow between 100 and 200, and red between 200 and 300, then just start with your gridded data and use 'image'. You may need to transform from values to colours, but that's easy. If you really want connected polygons (and I can't think why...) , then perhaps using rgeos and overlaying the lines with a square bounding box will work... Barry _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
