View source: R/streetNameLocator.R
streetNameLocator | R Documentation |
Highlight selected road(s) and cases.
streetNameLocator(street.name = "Broad Street", zoom = TRUE,
latlong = FALSE, cases = "address", token = "id", vestry = FALSE,
add.pump = TRUE, add.title = TRUE, add.subtitle = TRUE,
highlight = TRUE, distance.unit = "meter", time.unit = "second",
walking.speed = 5, cex.text = 0.67)
street.name |
Character. A street name or vector of street names (e.g., "Broad Street", "Poland Street"). |
zoom |
Logical or Numeric. Positive values zoom in. Negative values zoom out. |
latlong |
Logical. Longitude and latitude coordinates |
cases |
Character. Cases to plot: |
token |
Character. Cases as "id" or "point". |
vestry |
Logical. |
add.pump |
Logical. Include pumps. |
add.title |
Logical. Include title. |
add.subtitle |
Logical. Include subtitle. |
highlight |
Logical. Highlight selected segment(s) and cases. |
distance.unit |
Character. Unit of distance: "meter", "yard" or "native". "native" returns the map's native scale. See |
time.unit |
Character. "hour", "minute", or "second". |
walking.speed |
Numeric. Walking speed in km/hr. |
cex.text |
Numeric. |
A base R graphics plot.
See streetNames()
.
streetNameLocator("broad street")
streetNameLocator("Broad Street", zoom = -10)
streetNameLocator("Broad Street", latlong = TRUE, zoom = -10)
streetNameLocator("Broad Street", distance.unit = "yard")
streetNameLocator("Broad Street", zoom = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.