SCM

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
RE: about TransitionMap [ Reply ]
By: Jacob van Etten on 2010-10-05 14:47
[forum:3445]
It sums the columns. I will correct the documentation.

about TransitionMap [ Reply ]
By: Facundo Muñoz on 2010-10-05 09:33
[forum:3436]
Hi.
I don't manage to understand what TransitionMap does.
The help file says that it

"converts the Transition object into a RasterLayer with the mean of the non-zero values of the transition matrix as raster values",

but from this example:

r <- raster(nrows = 3, ncols = 3, xmn=-1, xmx=1, ymn=-1, ymx=1)
r <- setValues(r, c(1,0,1,2,2,1,0,1,2))
tr1 <- TransitionFromRaster(r, transitionFunction = mean, directions = 4)

it follows that the transition matrix TransitionMatrix(tr1) has values between 0.5 and 2, while TransitionMap(tr1) has values up to 6, so it is hardly a mean of values from the transition matrix.

Thanks to:
Vienna University of Economics and Business Powered By FusionForge