[R-sig-Geo] Interactive (click-able) map within R

Hodgess, Erin HodgessE at uhd.edu
Wed Oct 24 06:56:19 CEST 2012


Hello:

I just started working on this yesterday (literally!) via FastRWeb.  Simon Urbanek gave me some suggestions to use which involve HTML, callbacks, etc.  I know I little about HTML but not about javascript.

However, I'm trying to put some sense to things.

Thanks,
Erin

________________________________________
From: r-sig-geo-bounces at r-project.org [r-sig-geo-bounces at r-project.org] on behalf of Florian Lengyel [florian.lengyel at gmail.com]
Sent: Tuesday, October 23, 2012 11:24 PM
To: Ebrahim Jahanshiri
Cc: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] Interactive (click-able) map within R

I'm going to venture a suggestion--I'm interpreting your question to
mean that you would like web-enabled maps, and not a desktop application.
If you meant a desktop application, then I'm responding the question
I would have liked someone else to ask (and that I would like someone
else to solve--so I might as well attempt to work on it.)

Perhaps OpenCPU (http://opencpu.org)  would be suitable as a
web platform,  in conjunction with a javascript library such as Leaflet.
Integrating the two would involve using the REST service supplied
by OpenCPU, possibly modifying it to return GeoJSON. It might have to
be combined with a javascript library such as jQuery (for additional
controls,
and URI calls).

It's possible you could use CartoDB for map layers, in conjunction with
leaflet,
and use OpenCPU as the REST service to provide access to the multiple
regressions. This could mean duplicating your data: it is possible that
the same layers you maintain in CartoDB would have to be accessible to R
otherwise.
However, if you want your own installation of CartoDB instead of the
commercial
service, this is what you're up against:

https://plus.google.com/u/0/111972627358501525662/posts/Z6kNdt5QV93

Perhaps someone will set me straight and convince me these are terrible
ideas,
if they even rise to that level.

FL

On Tue, Oct 23, 2012 at 11:39 PM, Ebrahim Jahanshiri <e.jahanshiri at gmail.com
> wrote:

> Dear all,
>
> I am trying to create a map that is click-able i.e. like most GIS platforms
> that let the user click on the points or entities and for example see their
> attributes. I want to do this within R since I need R to do the analysis
> (multiple regression) and show the results of regression along with other
> attributes for each entity on a base map by a click of user on a map
> overlay (simple GIS work).
>
> I can not use anything based on Google maps (like GoogleVis and KML
> exportation and so on) since my data is using different projection and
> transforming them into WGS84 creates overlay miss-positions on Google
> Earth/Maps. So I need to first load up my area polygon and then overlay the
> points on top of them and as I mentioned I need it to be click-able.
>
> So far I couldn't find a way to do this totally within R. I am aware that
> by linking R to other GIS software (like GRASS GIS for example) it is
> possible to do this but my priority is R since it will be easier for me to
> work with and also I have no experience with GRASS or other open-source
> software. Moreover it will be good to find out if there is any capability
> already implemented in R.
>
> I appreciate any clue that you might have for me,
>
> Best regards,
>
> Ebrahim Jahanshiri
>
>         [[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
>

        [[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