And once we get the data presentation right, we can add the shapefile and go get some tea. # must have gpclib installed require("rgdal") # requires sp, will use proj.4 if installed require("maptools") require("
I finally settled with just using a shapefile that was available for download on the NYC Planning website. Using ggplot2’s fortify() function, the shapefile can be converted into a dataframe that can then be understood by ggplot2. Started out with just plotting the data from the shapefile,...
text(nodes$Longitude,nodes$Latitude,nodes$Name,cex=1,adj=0,pos=2,col="#C2C2C2") Thetextfunction is used in almost identical fashion to the points function, but with an additional argument that contains the names of the nodes. We also add two additional arguments:adjandpos. Theadjparameter...