Description Usage Arguments Details Value Examples
getPolygon
creates an SpatialPolygonsDataFrame object that displays the boundary box for a given dataset based on info from the *area* column in the data.frame generated by querySW
.
1 | getPolygon(x, index)
|
x |
data.frame returned by the querySW function |
index |
numeric; index (row) of a record in |
getPolygon
creates an SpatialPolygonsDataFrame object that displays the boundary box for a given dataset (corresponding to row index
) based on info from the *area* column in the data.frame generated by querySW
.
a SpatialPolygonsDataFrame object
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
api_key <- "your_personal_alphanumeric_api_key"
# Set the SkyWatchr.apikey option
options(SkyWatchr.apikey = api_key)
res <- querySW(time_period = "2015-8", longitude_latitude = "-71.1043443,-42.3150676")
sppolygon <- getPolygon(res, 61)
library(mapview)
mapView(sppolygon)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.