Dear all,

 

I have a question about how to load data or (entering data )to each cell of
a rectangle created by rect . 

 

e.g.

I have a matrix 

rbind(1:2,1:2)

 

I have created a 2x2 rectangle by using:

 

a<-0:1/10

b<-0:1/10

kk<-expand.grid(a,b)

plot.new()

rect(kk[, 1], kk[, 2], kk[, 1] + .1,kk[, 2] + .1)

 

 

so how do we put the value of rbind(1:2,1:2) into the relevant cell of this
rectangle created above? If it is not possible to do so, is there any way to
plot the matrix table with grid.

 

Thanks million times!

 

Rene

 


	[[alternative HTML version deleted]]


