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 <ym at climpact.com>
To: r-help at stat.math.ethz.ch
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: ym at climpact.com
<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>
> 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]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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
petr.pikal at precheza.cz