Description Usage Arguments Value Author(s) Examples
getXYcoords
computes the geographical coordinates of
the rows and columns of pixels of a raster map of class
asc
. Code & helpfile were modified from adehabitat
package.
1 | getXYcoords(w)
|
w |
an object of class |
Returns a list with two components:
x |
the x coordinates of the columns of pixels of the map |
y |
the y coordinates of the rows of pixels of the map |
Jeremy VanDerWal jjvanderwal@gmail.com
1 2 | tasc = as.asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
getXYcoords(tasc)
|
Raster map of class "asc":
Cell size: 1
Number of rows: 100
Number of columns: 100
Type: numeric
$x
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
[19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
[37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
[55] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
[73] 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
[91] 91 92 93 94 95 96 97 98 99 100
$y
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
[19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
[37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
[55] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
[73] 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
[91] 91 92 93 94 95 96 97 98 99 100
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.