plot_points: Create map with points

Description Usage Arguments Value Examples

View source: R/plot_points.R

Description

Create map for data.frame with points.

Usage

1
2
3
4
5
6
7
8
9
plot_points(
  df,
  value,
  lon = lon,
  lat = lat,
  palette = "viridis",
  legend_position = "bottomleft",
  crs = 4326
)

Arguments

df

data.framw with column for lon and lat

value

column in df

lon

column with lon

lat

column with lat

palette

color palette

legend_position

position for legend (default is "bottomleft")

crs

crs (default is 4326)

Value

leaflet map

Examples

1
2
3
4
## Not run: 
plot_points(Groningen, value = amount)

## End(Not run)

spatialrisk documentation built on Nov. 10, 2021, 5:09 p.m.