There are a few ways to set custom colors. Your best bet would be to use
`cut()` and assign groups their colors. See
http://docs.ggplot2.org/current/scale_identity.html and
http://docs.ggplot2.org/current/scale_manual.html.

FWIW, I think this question would be more appropriate for the ggplot2
emailing list or stackoverflow.

Cheers,
Roman



On Thu, Nov 14, 2013 at 10:22 AM, Cenk İÇÖZ <cicoz@anadolu.edu.tr> wrote:

> Hi friends and colleagues,
>
> I am newbie into spatial analysis and g零. I am trying to make a thematic
> map  but I have a problem with coloring. I use ggplot2 package aes(fill)
> argument to do this.My variable "etkinlik" take values in the closed
> interval [0,1] .However,I want to attach a color to a value( "1" lets say)
> and  to  group the rest of the continuous variable into 5 intervals
> according to colors.
> Thanks in advance
>
>
> Res. Ass. Cenk Icoz
> Anadolu University
> Department of statistics
> Eskisehir/Turkey
>
>
>
>
>
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>


-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

