hadley wickham schrieb:
On Wed, Sep 24, 2008 at 8:39 AM, Albin Blaschka <[EMAIL PROTECTED]> wrote:
[snip]
As I have those categories (cover grasses, cover herbs...) I would like to assign special colours to each (for example "cover grasses" => dark green, "cover open soil" => brown ...), but I did not get it so far. I tried several variations with area_geom, scale_manual but without success...
You want to modify the scale (the thing that converts data values to colours), not the geom: + scale_fill_manual(values = mycolorscheme) (And it's fill you want to change, not colour) This will also update the legend. Hadley
Thank you very much, it works now - the right keywords were the problem: it seems I went wrong because for me "scale" had only a meaning in a spatial context (mother tongue is german), for example scale on a map or scale (range) of an axis...and I was fixed to changeing colours, but fill is now logical...
best wishes, Albin -- | Albin Blaschka, Mag.rer.nat. | Etrichstrasse 26, A-5020 Salzburg | * www.albinblaschka.info * www.thinkanimal.info * | - It's hard to live in the mountains, hard but not hopeless! ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

