search for: ccordinates

Displaying 2 results from an estimated 2 matches for "ccordinates".

Did you mean: cordinates
2009 Dec 22
1
RGtk2 - retrieve ggraphics mouse coordinates during drag-and-drop event
Hi all, I have a gtable and a ggraphic widget. I want to drag an element from the table onto the graphic. When the drag object is released over the ggraphic widget, I want the mouse coordinates inside the ggraphic to be returned. Right now I do not know how to get the mouse ccordinates of the ggraphic widget at any given time. How can I access the ggraphics mouse coordinates? Below you find my sample code (windows only due to ggraphics). TIA, Mark library(gWidgets) library(RGtk2) options("guiToolkit"="RGtk2") w = gwindow("ggraphics example") t...
2010 Dec 15
0
Problems with the borders (High difficulty)
...e dispersed seed are properly included in the SB for the next iteration? Here I attach you the full model to be this message understandable: width = 10 height= 10 endt = 6 nPop = 1 SBLL = 1 SBUL = 10 LrD <- matrix(0, width, height) x <- as.integer(runif(nPop,min=1,max=10)) #uniform random x ccordinates for occupied cells y <- as.integer(runif(nPop,min=1,max=10)) #uniform random y ccordinates for occupied cells z <- cbind(x,y) LrD[z] = runif(nPop,min=SBLL,max=SBUL) #uniform random SB densities assigned to random locations par(mfrow=c(1,1)) image(x=1:width,y=1:height,z=LrD, col=terrain...