Re: [R] Hello

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Wed, 11 Jun 2008 11:30:04 +0200

"sumit gupta" <sumit.iitm_at_gmail.com> napsal dne 11.06.2008 07:53:54:

> Hello
> thanx for the info..
>
> I still have tthe doubt regarding the heat map.
> I am attching a plot of a 70X3 data matrix.In which 3rd variable has
been
> shown as colour of different boxes.Could you help me to draw this type
of graph using R

Well, as you did not provided some data

 mat<-cbind(sample(1:5, 70, replace=T), sample(1:5, 70, replace=T), rnorm(70))
dim(mat)
[1] 70 3
library(akima)
filled.contour(interp(mat[,1], mat[,2], mat[,3], duplicate="mean")) image(interp(mat[,1], mat[,2], mat[,3], duplicate="mean"))

is this what you want?

Regards
Petr

>
> Regards,
> Sumit
>
>
> On 6/10/08, Petr PIKAL <petr.pikal_at_precheza.cz> wrote:
> Hi
>
> r-help-bounces@r-project.org napsal dne 10.06.2008 14:49:55:
>
> > Hello,
> >
> > I am facing a problem in drawing heat map using R.
> >
> > I have a 70X3 matrix and I want to draw a heat map with 1 coloumn on X
> axis
> > another on Y axis and want to show the value of 3rd coloumn using heat
> > colours.
> > Could you please help me with this .
>
> You can use function interp from akima package
>
> Petr
>
> > Thank you .
> >
> > Regards,
> > Sumit
> >
> > [[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.

>
>
>
> --
> Sumit Kumar Gupta
> 4thYear ,Biotechnology
> IIT Madras [příloha rfm.bmp odstraněna uživatelem Petr PIKAL/CTCAP]



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. Received on Wed 11 Jun 2008 - 10:37:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 11 Jun 2008 - 11:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive