Visualizing Geospatial Data in R
Charlotte Wickham
Assistant Professor at Oregon State University
# Subset by index
str(countries_spdf[1, ], max.level = 2)
Formal class 'SpatialPolygonsDataFrame' [package "sp"] with 5 slots
..@ data :'data.frame': 1 obs. of 6 variables:
..@ polygons :List of 1
..@ plotOrder : int 1
..@ bbox : num [1:2, 1:2] 60.5 29.3 75.2 38.5
.. ..- attr(*, "dimnames")=List of 2
..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slot
Visualizing Geospatial Data in R