An interesting example within Shiny is US map . I like to implement it for instance for the Postal codes in the Netherlands Dutch shapes and create a simple thematic map.
library(maptools)
readshp<-readShapeSpatial("C:/R/census-app/ESRI-PC4-2015R1.shp")
The variable on which I like to create a map is added in the Dbasefile behind the shape, but after:
map("readshp", fill = TRUE, col = fills,
resolution = 0, lty = 0, projection = "polyconic",
myborder = 0, mar = c(0,0,0,0))
R shows the error:
Error in get(dbname) : object 'readshpMapEnv' not found
How can we fix this?
I guess it's due to the quotes. Remove the quotes around your object. Try:
map(readshp, fill = TRUE, col = fills, resolution = 0, lty = 0, projection = "polyconic", myborder = 0, mar = c(0,0,0,0))
Besides.. next time "include just enough code to allow others to reproduce the problem.." see How do I ask a good question? ;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.