Saturday 15 August 2015

r - Error with function fortify of ggplot2 -


I am getting this error with the method in ggplot2:

error (function (Classes, FDF, Metable): An episode for signature is unable to detect a legacy method for ProZ 4 string, "tap" for "sign" "

following the code Is:

  & gt; library (maptools) & gt; gpclibPermit ()> Library (ggplot2) & gt; Library (rgdal) & gt; Library (rgeos) & gt; Library (Ggmap) & gt; brMap & lt; - readShapePoly ("Google / BRASIL.shp") & gt; brMapDF & l It works really # but this does not work in error (function (classes, fdef, mtable) in this donÂ't & gt; brMapDF & lt; - strong (brMap, area = "UF"); : Unable to find a legacy method for the function a ???? proj4stringâ ???? signature a ???? "zero" for one ????   

All this Shape files that I have with a shapefile that I found in stackoverflow, then I tried (in the above code), the data is

This is a solution However, if you separate the data from the UFO column forming an ID column in the form of the duplicate shown in the example wiki, the hard disk will use the first column in the spatial data frame according to its When adding a name under polygon ID column (Library) --Shippopa ("Google / BRASIL", IDvar = "UF", proj4string = CRS ("+ init = epsg: 4236"), Repair = TRUE, verbose = TRUE) brMap @ data $ id & lt; - brMap @ data $ UF brMapDF & lt; The resultant structure for the BramPad occurs then: 'data.frame': 9316 objects $ long: number -68, 6 -68,7 -68,8-68,8-68,9 ... $ Lat: Numbers -11.1 -11.2 -11.2 -11.1 -11.1 ... $ Order: Integer 1 2 3 4 5 6 7 8 7 9 of the variables 10 ... $ holes: false false false false false false ... $ piece: factor w / 37 level "1", "2", "3", "4", ..: 1 1 1 1 1 1 1 1 1 1 ... $ Group: Factor w / 81 level "AC.1", "AL.1", ..: 1 1 1 1 1 1 1 1 1 1 1 ... $ id: Chr "AC" "AC" "AC" "AC" ...

No comments:

Post a Comment