Skip to content
Prev 25086 / 29559 Next

R - QGIS integration

I won't be able to help you in detail, but here's an outline.

Install and learn the rgdal package to get the SHP files into R.

Presumably your csv files have coordinates, in the same coordinate system
as the shapefiles.

Load the CSV files into R in the usual way, presumably resulting in data
frames.

Desirable, but perhaps not absolutely necessary: convert the data frames
into Spatial class objects; probably each will become a
SpatialPointsDataFrame.

plot( {a polygon shapefile object} )
plot( {a point shapefile object} , add=TRUE)
plot( {a SpatialPointsDataFrame} , add=TRUE)