[R] Pie charts using plotGooglemaps
jim at bitwrit.com.au
Wed Apr 16 12:56:09 CEST 2014
On 04/16/2014 08:29 PM, Endri Raco wrote:
> I see function *segmentGoogleMaps* from package *plotGoogleMaps* does
> exactly what I need with data from dataset *meuse*.
> When I ran code:
> coordinates(sampledf)<-~x+y # convert to SPDF
> proj4string(sampledf) <- CRS('+init=epsg:28992')# adding Coordinate
> Referent Sys.
> # Create web map of Point data
> Everything works just fine. When I try to run code:
> # colPalette defines colors for plot
> m<-segmentGoogleMaps(sampledf, zcol=c('City','Village'),
> everything goes wrong and all points seems to show in one single
> coordinate pair.
> The problem is I think that data in meuse dataset are different from
> mine (I think UTM).
> When tried to convert same result.
> I desperately need to see pie chart in a google map so please help
> solving this issue
Whoa! All bets are off! plotGoogleMaps generates overlays on an HTML
page linked to Google Maps. This is way off what you do with R graphics
devices. Your best bet is to search:
pie chart google maps
on Google and start reading. I have used plotGoogleMaps, but never put
pie charts on them, and I really don't have time to learn how at the moment.
More information about the R-help