Something like this? > image(x, y, outer(x, y, u), breaks=c(0, a), col=heat.colors(3)) > contour(x, y, outer(x, y, u),levels=a, col="blue", add=TRUE)
---------------------------------------------- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Akhil dua > Sent: Monday, July 02, 2012 2:26 AM > To: Joseph Clark > Cc: r-help@r-project.org > Subject: Re: [R] Heat Maps > > Thanks Joseph > > > > but see i am not able to get heat maps with this code \ > can u please give me the full codes to generate heat map on the same > graph > where i have drawn contour lines > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.