[R-sig-Geo] New version of plotGoogleMaps ( now plot STDIF and STFDF data)
Ross Dwyer
ross.dwyer at uq.edu.au
Fri Apr 12 06:48:20 CEST 2013
Hi Milan,
The new package looks great. Any plans to generate animations from spacetime objects on a Google platform such as Maps or Earth?
I would love to see something similar to Google's Public Data Explorer/google motion charts become available within an R package (see below links)...
http://www.google.com.au/publicdata/explore?ds=d5bncppjof8f9_&ctype=b&strail=false&nselm=s&met_x=sp_dyn_le00_in&scale_x=lin&ind_x=false&met_y=sp_dyn_tfrt_in&scale_y=lin&ind_y=false&met_s=sp_pop_totl&scale_s=lin&ind_s=false&dimp_c=country:region&ifdim=country&hl=en&dl=en&iconSize=0.5&uniSize=0.035#!ctype=m&strail=false&bcs=d&nselm=s&met_s=sp_pop_totl&scale_s=lin&ind_s=false&dimp_c=country:region&ifdim=country&pit=1302530400000&hl=en_US&dl=en&ind=false
http://www.google.com.au/publicdata/explore?ds=ml9s8a132hlg_&ctype=m&strail=false&nselm=s&met_s=minimum_wage&fdim_s=currency:eur&scale_s=log&ind_s=false&met_c=minimum_wage&fdim_c=currency:eur&idim=country:lu&ifdim=country&pit=1293840000000&hl=en&dl=en&iconSize=0.5&uniSize=0.035&yMax=58.5924685&xMin=-8.2391222&xMax=35.43979471&mapType=t&yMin=35.902422#!ctype=m&strail=false&bcs=d&nselm=s&met_s=minimum_wage&fdim_s=currency:eur&scale_s=log&ind_s=false&idim=country:lu&ifdim=country&hl=en_US&dl=en&ind=false
Cheers, Ross
-----Original Message-----
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Milan Kilibarda
Sent: Friday, 5 April 2013 6:48 PM
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] New version of plotGoogleMaps ( now plot STDIF and STFDF data)
Dear all,
I have just uploaded to CRAN a new version plotGoogleMaps.
Significant changes in plotGoogleMaps are listed below:
* Now plotGoogleMaps plot spacetime STDIF and STFDF data;
See example in vignette.
* Some bugs in plotting pie charts over Google Maps are repaired - function segmentGoogleMaps;
* Functions provide data to be plotted in similar way like spplot maps; pieSP, vectorsSP, colors like in plotGoogleMaps (PolyCol) and similar are now in package.
Example:
# plotGoogleMaps plot
library(plotGoogleMaps)
data(meuse)
coordinates(meuse)<-~x+y # convert to SPDF
proj4string(meuse) <- CRS('+init=epsg:28992')
m<-segmentGoogleMaps(meuse, zcol=c('zinc','dist.m'), mapTypeId='ROADMAP', filename='myMap4.htm', colPalette=c('#E41A1C','#377EB8'), strokeColor='black')
# spplot
pies<-pieSP(meuse,zcol=c('zinc','dist.m'), max.radius=100)
pies$pie2=rep(1:2,155)
spplot(pies, 'pie2', col.regions=c('#E41A1C','#377EB8') )
# plot
cols=PolyCol(pies$pie2,colPalette=c('#E41A1C','#377EB8') )$cols
plot(as(pies,'SpatialPolygons'), col=cols)
#plotKML
library(plotKML)
plotKML(pies, colour='pie2', colour_scale=cols)
All major changes are documented in the vignette.
Happy testing,
Milan Kilibarda
University of Belgrade,
Faculty of Civil Engineering,
Department of Geodesy and Geoinformatics,
Address: Bulevar kralja Aleksandra 73 11000 Belgrade, Serbia,
Mail: kili at grf.bg.ac.rs
tel:+381 11 3218516
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list