[R] how to plot matrix in graphs

Liaw, Andy andy_liaw at merck.com
Mon Nov 14 14:49:56 CET 2005


See ?image.

Andy

> From: peter eric
> 
> halo,
>  
> how to plot a matrix (i have a multiple matrix ) in graphs in 
> terms of colored boxes or circles.
> my matrix looks like
>  
>            A           B          C
>  
>        6 2 3     4 3 2      2 1 7
>   A    4 3 1     4 6 8      2 1 6
>         2 7 8     7 8 0      2 3 5
>  
>        5 2 3     4 7 2      2 1 7 B    4 3 1     4 8 8      3 1 6
>         9 7 8     7 8 0      6 3 5
> 
>  
>         1 2 3     4 3 2      2 1 7  C   4 3 1     4 6 8      2 1 6
>         2 7 8     7 8 0      2 3 5
>  
> And my graph should looks like(in terms of colored boxes or 
> circles according to the magnitude of the nos)
>  
>  
>              A           B          C
>  
>           O O O    O O O   O O O
>  A       O O O    O O O   O O O  
>           O O O    O O O   O O O
>  
>           O O O    O O O   O O O B       O O O    O O O   O O O  
>           O O O    O O O   O O O
>  
>           O O O    O O O   O O O C       O O O    O O O   O O O  
>           O O O    O O O   O O O
>  
> Can you suggest me some ways of doing this..
>  
> thank you....
>  
> best regards,
> peter.
>  
> Research student,
> Fraunhofer IPT,
> Germany.
> 
> 
> 
> 		
> ---------------------------------
> 
> 	[[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
> 
>




More information about the R-help mailing list