I am trying to map point density estimates of fish on a map of a lake, to then run geostatistical analyses on.
I have read in a shapefile of the outline of a lake by using readOGR
function from rgdal
, successfully. This object I named lake
My density estimates of fish, along with coordinates is in a db class object named db.data
. I can plot my density estimates of fish with the line:
plot(db.data)
When I then overlay my lake
on the plot of fish density estimates, with code plot(lake, add=T)
the entire extent of the lake does not show up. Instead, it is cropped.
How do I get the entire outline of the lake shapefile to show up in this plot?