plot_points: Create interactive point map

View source: R/map_plot_points.R

plot_pointsR Documentation

Create interactive point map

Description

Creates an interactive map for a data.frame containing point coordinates, colored by a selected variable.

Usage

plot_points(df, value, lon = "lon", lat = "lat", crs = 4326, at = NULL)

Arguments

df

A data.frame containing columns for longitude and latitude.

value

A string giving the name of the column in df to be visualized.

lon

A string with the name of the column containing longitude values. Default is "lon".

lat

A string with the name of the column containing latitude values. Default is "lat".

crs

Integer; EPSG code for the coordinate reference system. Default is 4326.

at

Optional numeric vector; breakpoints used for visualization.

Value

An interactive mapview object.

Examples

## Not run: 
plot_points(Groningen, value = "amount")

## End(Not run)


spatialrisk documentation built on Sept. 14, 2025, 5:08 p.m.