Description Usage Arguments Value Examples
Given a data frame of geocoded coordinates, check their locations on the map one by one. The function will show you each point in the data frame one by one. You can move forward and backwards through the points with the "next" and "previous" buttons, which will not save any changes. If a point is correctly geocoded, then clicking "mark correct" will save that information and move on to the next point. If a point is incorrect, click on the map to identify the correct location. When you have identified the correct location, click "move point" to save the new point. Points which have not been marked correct are shown in red; points which have been marked correct are shown in green; points which are being reassigned are shown in blue.
1 2 |
data |
A data frame containing latitude and longitude coordinates, and possibly other metadata to identify the geocoded place. |
latitude |
The name of the column containing latitudes. If |
longitude |
The name of the column containing longitudes. If
|
checked |
The name of the column that keeps track of whether a point has
been marked as accurately geocoded or not. If this column already exists,
it must contain logical values. If it does not exist, then it will be
created. A value of |
zoom |
The level of zoom to use when showing each point. A whole number
between |
popup_cols |
A character vector of column names. Values from these
columns will be displayed in the popup for each point. If |
tile_provider |
The code for a tile provider. See the leaflet package's
|
The original data frame with a new column indicating which values have been checked with any corrections to latitudes and longitudes.
1 2 3 4 5 6 | ## Not run:
geocheck(geocoded_cities)
geocheck(geocoded_cities, zoom = 8,
latitude = "latitude", longitude = "longitude")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.