On 04/13/2014 09:20 AM, drunkenphd wrote:> Hi, I am trying to add some pie charts in a list of coordinates.
> Please find attached data I am using
> Basically I am using this commands:
> data<-read.csv(file.choose(),header=T) coordinates(data) = ~ x + y
> proj4string(data) = CRS("+proj=longlat +datum=WGS84") #
colPalette defines
> colors for plot mychart<-segmentGoogleMaps(data,
> zcol=c('City','Village'),mapTypeId='ROADMAP',
>
filename='myMap4.htm',colPalette=c('#E41A1C','#377EB8'),
> strokeColor='black')
>
> But a map with legends shows up without any points or pie chart
> Attached my csv https://www.dropbox.com/s/pkvq6xz0ynwok9r/sample.csv
Hi drunkenphd,
If you have the coordinates, you can use the floating.pie function in
the plotrix package.
Jim