[R] Odp: how to plot 2d matrix as coloured squares?

Petr PIKAL petr.pikal at precheza.cz
Tue Apr 10 10:58:15 CEST 2012


Hi

> 
> i have a matrix like 
> 
>     x1  x2  x3
> y1  2   34  5656
> y2  34  434 342
> y3  234 43  34
> 
> i want to plot these values like here
> http://www.almob.org/content/2/1/12/figure/F5?highres=y
> 
> The rainbow function could calculate a colour for each value.
> But how van i generate the square pattern?

?image, ?filled.contour

Petr

> 
> Kind regards,
> 
> -- 
> Jonas Stein <news at jonasstein.de>
> 
> ______________________________________________
> 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