

These are excel sheets prepared from the data availaible on NASA page ( link). The basic idea is clear (get touchInput.x and touchInput.y, divide by 48 and floor it), but this only works if the top left tile visible on the current screen has the 0,0 coordinates. Finally, we pass those coordinates to setView within a leafletProxy call to zoom into our desired point.
#SHINY R MOUSE CLICK MAP GET COORDINATES DOWNLOAD#
You can download data files from here and here. When the user clicks anywhere inside a polygon layer, we can access the polygon's layerId in Shiny, and match that with our reference table to get the coordinates of the polygon's center.

Similarly I want to have inputMAPIDmouseover with a list of the current latitude and longitude of the mouse cursor. On one static graph we will illustrate the annual average temperature anomalies, showing that they are constantly growing. When using shiny you can get the current coordinates of a click event using inputMAPIDclick, which contains latitude and longitude of the click. We're gonna create a simple R application showing annual and monthly average temperature anomalies. It returns coordinates that are given to leaflet to zoom on the map. You can use this feature to create a search bar in addition to the leaflet map The textInput is passed to the geocode function of ggmap.

It is not as difficult as I thought, so here's the tutorial. The ggmap library allows you to get the coordinates of any place in the world based on a google search. Hello! Recently I was asked to create an R program showing one graph and dynamically generating another using the information about mouse position over the first graph.
