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
Regards
--
View this message in context:
http://r.789695.n4.nabble.com/Pie-charts-using-plotGooglemaps-tp4688678.html
Sent from the R help mailing list archive at Nabble.com.
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.csvHi drunkenphd, If you have the coordinates, you can use the floating.pie function in the plotrix package. Jim