I am trying to apply a projection to the following dataset from the USGS: https://www.sciencebase.gov/catalog/item/581d052be4b08da350d524ce. After reading in the dataset, the "proj4string" slot shows the data has these CRS arguments:
+proj=longlat +datum=NAD83 +no_defs +ellps=GRS80 +towgs84=0,0,0
Here is a simplified piece of code that results in the error in question:
library(rgdal) library(maps) Highway_longlat <- readOGR(dsn = "SourceFolder") Highway_merc <- spTransform(x = Highway_longlat, CRSobj = CRS(projargs = "+proj=merc")) map(database = Highway_merc)
I get this error:
Error in par(pin = p) : invalid value specified for graphical parameter "pin"
I was not able to find any information on this error that seemed related to my situation.