Description Usage Arguments Value Examples
Data portals such as OBIS typically return tables of geolocated observations upon requests. Gridded data is often used to represent in a synthetic way this type of observations, but although R packages ggplot2 and ggmap are good at representing it, there is no built-in function to go from raw to aggregated data.
1 2 |
lat |
is a numerical vector of latitudes for the set of observations. |
lon |
is a numerical vector of longitudes for the set of observations. |
myresolution |
is the size of the cells the data is to be aggregated over |
myzoom |
is the zoom to be applied to plot the gridded data on ggmap map |
lat_centre |
is the user-defined latitude the map will be centred on. Default to mean latitude of observations. |
lon_centre |
is the user-defined longitude the map will be centred on. Default to mean longitude of observations. |
grid_data
returns a data frame containing the number of observations per cell.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.