Hi see ?rect e.g. > image(1:12, 1:12, outer(1:12, 1:12,"+")) > for (i in 1:12) rect(10+(i/12-1/12), 8, 10+i/12, 10,col=heat.colors(12)[i]) > HTH Petr
On 9 Jun 2006 at 17:19, Yves Magliulo wrote: From: Yves Magliulo <[EMAIL PROTECTED]> To: [email protected] Organization: Climpact Date sent: 09 Jun 2006 17:19:34 +0200 Subject: [R] How can i add a color bar with base package Send reply to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> > Hi, > > I'm trying to find this for 3 hours now so i come here to find any > help. How can I add a color bar to show the color scales to what is > generated by image(), similar to the one in figures generated by > filled.contour() using only the base package although i know there is > solution with contributed package. > > it's sounds very easy but i can't get it! :-( > > thanks by advance. > > --------------------------------------- > Yves Magliulo > R&D Engineer > CLIMPACT : www.climpact.com > tel : 01 44 27 34 31 > > [[alternative HTML version deleted]] > > ______________________________________________ > [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 Petr Pikal [EMAIL PROTECTED] ______________________________________________ [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
