[R] colorful plot

Jessica Streicher j.streicher at micromata.de
Tue Aug 21 11:30:56 CEST 2012


filled.contour(Nooshin, main="Permeability",color.palette=rainbow)
filled.contour(Nooshin, main="Permeability",color.palette=terrain.colors)
filled.contour(Nooshin, main="Permeability",color.palette=topo.colors)

not quite sure what to do with the heat map, but it has a "col" attribute.

On 21.08.2012, at 11:03, nooshin bahar wrote:

> 
> 
> > Hello guys,
> >
> > I want to increase contrast of colors in my matrix plot.
>   > Nooshin<- as.matrix(matrix(sample(c(0.02,0.01,0.003,0.001,0.0001,0.0005,0.0004,0.00013),2401,replace=TRUE),ncol=49), row.names=1, header=TRUE)
>   > filled.contour(Nooshin, main="Permeability")
>  > Nooshin_matrix <- data.matrix(Nooshin)
>  > Nooshin_heatmap <- heatmap(Nooshin_matrix, Rowv=NA, Colv=NA,scale="column", margins=c(5,10))
> 
> > How I could increase contrast with 8 kind of color.
> my break is mybreaks <- c(0.02,0.01,0.003,0.001,0.0001,0.0005,0.0004,0.00013)
> with different color.
> heat map give me red-orang-yellow.I need 8 different colors.
>  
> Best Regards
> Nooshin
> 
> 
> >
> > Thanks
> > Nooshin
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at r-project.org 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.
> 
> 




More information about the R-help mailing list