[R] how to plot the circles in matrix form

Adaikalavan Ramasamy ramasamy at cancer.org.uk
Wed Nov 9 02:04:08 CET 2005


 m <- matrix(0, nc=4, nr=3)

 plot( 0, xlim=c( 1, ncol(m) ), ylim=c( 1, nrow(m) ), 
       type="n", ann=F, axes=F )

 points( expand.grid( 1:ncol(m), 1:nrow(m) ), pch=1 )


Run the last example in help(points) for more refinements and options.

Regards, Adai



On Tue, 2005-11-08 at 13:36 -0800, shanmuha boopathy wrote:
> Could you help me 
> to plot the circles in the form of matrix like
>  
> O  O  O  O
> O  O  O  O
> O  O  O  O
> 
> thank you..
>  
> with regards,
> boopathy.
> 
> 
> Thirumalai Shanmuha Boopathy, 
> Zimmer no : 07-15,
> Rtscher strasse 165, 
> 52072  Aachen . 
> Germany.
>  
> Home zone   :  0049 - 241 - 9813409
> Mobile zone :  0049 - 176 - 23567867
> 
> 
> 
> 
> 		
> ---------------------------------
> 
> 	[[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