The first time user is here. I am converting the matrix to the package object stamp in the IP object. However, from the matrix mat [1, 1] the top left value is written in the lower left corner of the image e.g. The IM Function reads the rows of matrix from top to bottom, but writes them in IM starting below. Attempted to specify the IR argument for reciprocal order (s), but still the same result. How to fix suggestions?
requires spatstat matte & lt; - Matrix (seq 1,20, = 1), nrow = 4, ncol = 5) Print (mat) im & lt; Plot (im, axes = t)
There are two ways around it: In the latest development version of spatstat from gitub you can change between different layouts. See the help for details (transamat)
The layout you provide is called 'European' and the layout used for SPStState is called 'Spotstat', so you can do this:
Required (spatstet) mat; - Matrix (CEC (1, 20 (= 1), by = 1), nrow = 4, ncol = 5) m & lt; - Transmemate (mat, = 'European', '=' spotstate ') I is required (spatstat) mat; - Matrix ( Seq) (1,20, = 1), nrow = 4, ncol = 5) m & lt; - mat [4: 1,] i & lt; - im (m) plot (i, axes = TRUE)
No comments:
Post a Comment