Description Usage Arguments Details Value Author(s) Examples
This function translates the rgb values of the array myTile into a scalar matrix with just one gray value per pixel.
1 | RGB2GRAY(myTile)
|
myTile |
rgb image matrix, usually array with 3 dimensions |
Gray scale intensity defined as 0.30R + 0.59G + 0.11B
image tile
Markus Loecher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if (interactive()){
BrooklynLatLon = getGeoCode("Brooklyn")
mapBrooklyn <- GetMap(center=BrooklynLatLon, destfile = file.path(tempdir(), "Brooklyn.png"),
zoom=11, size = c(240,240))
mapBrooklynBW$myTile = RGB2GRAY(mapBrooklyn$myTile)
PlotOnStaticMap(mapBrooklynBW)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.