Hello, all: I am new here, and have a challenge to present some graphical data to the user in a convenient way. The challenge is to present a map to the user which is coloured with the value of a variable. Say for example, temperature. This is a preexisting graph that I can generate in any format, including svg. I don't have to produce it using R. When the user clicks anywhere in the map, the coordinates (longitude and latitude) have to be passed to R so that this, R, can look for the values of other variables in that location and make another graph with them. Does anyubody know how could I accomplish this?. Thanks in advance. Antonio Serrano aasdelat at aim.com ? [[alternative HTML version deleted]]
Hi Antonio, If you do create the map in R, you can use locator(). Jim On Sat, Apr 25, 2015 at 8:37 AM, Antonio Serrano via R-help <r-help at r-project.org> wrote:> > Hello, all: > > I am new here, and have a challenge to present some graphical data to the user in a convenient way. > > The challenge is to present a map to the user which is coloured with the value of a variable. Say for example, temperature. This is a preexisting graph that I can generate in any format, including svg. I don't have to produce it using R. > > When the user clicks anywhere in the map, the coordinates (longitude and latitude) have to be passed to R so that this, R, can look for the values of other variables in that location and make another graph with them. > > Does anyubody know how could I accomplish this?. > > Thanks in advance. > > > > Antonio Serrano > aasdelat at aim.com > ? > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Thank you, Jim. I didn't know the existence of the locator() function. But I can see now that I don't know how to read a graphic image into R to work with it. How can I read a pre-exisiting image into R?. Thanks again Antonio Serrano aasdelat at aim.com ? -----Original Message----- From: Jim Lemon <drjimlemon at gmail.com> To: Antonio Serrano <aasdelat at aim.com> Cc: r-help mailing list <r-help at r-project.org> Sent: Sat, Apr 25, 2015 5:47 am Subject: Re: [R] Interactive maps Hi Antonio, If you do create the map in R, you can use locator(). Jim On Sat, Apr 25, 2015 at 8:37 AM, Antonio Serrano via R-help <r-help at r-project.org> wrote:> > Hello, all: > > I am new here,and have a challenge to present some graphical data to the user in a convenient way.> > The challenge is to present a map to the user which is colouredwith the value of a variable. Say for example, temperature. This is a preexisting graph that I can generate in any format, including svg. I don't have to produce it using R.> > When the user clicks anywhere in the map, thecoordinates (longitude and latitude) have to be passed to R so that this, R, can look for the values of other variables in that location and make another graph with them.> > Does anyubody know how could I accomplish this?. > >Thanks in advance.> > > > Antonio Serrano > aasdelat at aim.com > ? > > >[[alternative HTML version deleted]]> >______________________________________________> R-help at r-project.org mailinglist -- To UNSUBSCRIBE and more, see>https://stat.ethz.ch/mailman/listinfo/r-help> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal,self-contained, reproducible code. [[alternative HTML version deleted]]