Main points
- There are two models with which we represent spatial data (
vector
andraster
) - The
vector
model relies onsimple features
: points, lines, and polygons (coordinates) sf
is the main R package for working with vector data- an
sf
object should have three things:- attributes (what: data frame)
- features (where: geometry column)
- CRS (in relation to what?: in the header)
sf
objects can be treated liketibbles
/data.frames
- Quickly visualize sf objects using
plot()
,ggplot()
, ormapview()