Displaying 2 results from an estimated 2 matches for "reactangl".
Did you mean:
reactangle
2008 Feb 27
2
Add a rectangle behind a plot
Hi there,
I found one reference to add a reactangle behind a
plot using plot(...,add=T), I tried this but didn't
obtain the desired result.
If a I have the following code:
plot(x,y)
rect(xleft, ybottom, xright,ytop,col='green)
The rectangle appear on top of the plot.
Any help will be greatly appreciated,
Judith
__________...
2009 May 24
1
Timing issue using locator() in loop containing print()
...")
sub_0<- locator(n=2)
rect(sub_0$x[1],sub_0$y[1],sub_0$x[2],sub_0$y[2],col="red",density=0)
text(sub_0$x[1]+(sub_0$x[2]-sub_0$x[1])/2,sub_0$y[1]+(sub_0$y[2]-sub_0$y[1])/2,paste("S",i),col="red")
#.......................Add each reactangle coords to master subset
list.................................................
ss[i,1]<-sub_0$x[1]
ss[i,2]<-sub_0$y[1]
ss[i,3]<-sub_0$x[2]
ss[i,4]<-sub_0$y[2]
}
print("finished...