Dear Shawn,

Here you can reproduce your example :

 library(plotGoogleMaps)

loc=rbind(   c(310 ,20 ,33 ,38.1287,  -76.58241),
                  c(1136 ,19, 63 ,31.6841 , -81.60091),
                  c(2377, 17 , 1 ,40.5216 ,-120.13004),
                  c(960 ,16 ,29 ,34.8945 , -98.40689))
loc=data.frame(loc)
names(loc)=c( "A" , "B" , "C",     "Lat",        "Lon")

 coordinates(loc) <- ~Lon+Lat
 loc@proj4string <- CRS("+proj=longlat +datum=WGS84")
 m<-plotGoogleMaps( loc, filename="example1.htm",mapTypeId='ROADMAP')

 m2 <- segmentGoogleMaps(loc,zcol=c('A','B','C'),mapTypeId =
   'ROADMAP',filename='example.htm',max.radius=100000)

# max.radius=100000 giving max radius for pie, the units are in m , so it
is 100 km - 62mi 241.33yd , what is appropriate if you map for the your
region

Best regards,
Milan


On Sat, Mar 2, 2013 at 10:38 AM, Milan Kilibarda <milan.kili11@gmail.com>wrote:

> On 3/2/13, Mckay, Shawn <smckay@rand.org> wrote:
> > All,
> >
> > I am attempting to plot pie charts on a google map using
> segmentGoogleMaps
> > function from the plotGoogleMaps library.  When I run the code below with
> > the example data set, the google map appears, but the pie charts are
> absent.
> >  Please help.
> >
> >
> > loc<- data.frame(Lat=rawData$Lat,Lon = rawData$Lon,rawData)
> > coordinates(loc) <- ~Lon+Lat
> > proj4string(loc) <- CRS("+proj=longlat")
> > m<-plotGoogleMaps( loc, filename="example1.htm",mapTypeId='ROADMAP')
> > m2 <- segmentGoogleMaps(loc,zcol=c('A','B','C'),mapTypeId =
> > 'ROADMAP',filename='example.htm')
> >
> > rawData =
> >       A  B  C     Lat        Lon
> >    310 20 33 38.1287  -76.58241
> > 1136 19 63 31.6841  -81.60091
> > 2377 17  1 40.5216 -120.13004
> > 960 16 29 34.8945  -98.40689
> >
> >
> > Shawn
> >
> >
> >
> >
> __________________________________________________________________________
> >
> > This email message is for the sole use of the intended r...{{dropped:9}}
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
> Hi, try define max.radius=100000 or larger,depending on your data.
>
> --
> Milan Kilibarda
>
> University of Belgrade,
> Faculty of Civil Engineering,
> Department of Geodesy and Geoinformatics,
> Address: Bulevar kralja Aleksandra 73  11000 Belgrade, Serbia,
> Mail:  kili@grf.bg.ac.rs
>
> tel:+381 11 3218516
>



-- 
Milan Kilibarda

University of Belgrade,
Faculty of Civil Engineering,
Department of Geodesy and Geoinformatics,
Address: Bulevar kralja Aleksandra 73  11000 Belgrade, Serbia,
Mail:  kili@grf.bg.ac.rs

tel:+381 11 3218516

	[[alternative HTML version deleted]]

