Overlapping data contour on a map

admin

Administrator
Staff member
I have gone through few tutorials and answers here in stackoverflow such as:
<a href="https://stackoverflow.com/questions/27886494/overlap-image-plot-on-a-google-map-background-in-r">Overlap image plot on a Google Map background in R</a> or
<a href="https://stackoverflow.com/questions/19339296/plotting-contours-on-an-irregular-grid">Plotting contours on an irregular grid</a> or <a href="https://stackoverflow.com/questions...heat-map-of-a-custom-property-in-r-with-ggmap">Geographical heat map of a custom property in R with ggmap</a> or <a href="https://stackoverflow.com/questions...ay-global-map-on-filled-contour-in-r-language">How to overlay global map on filled contour in R language</a> or <a href="https://blog.dominodatalab.com/geographic-visualization-with-rs-ggmaps/" rel="nofollow noreferrer">https://blog.dominodatalab.com/geographic-visualization-with-rs-ggmaps/</a>
They either don't serve my purpose or consider the density of the data to create the image.

I am looking for a way to plot contour on a map of a certain data, and would expect the image to look something like this:
<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>

or something like this taken from <a href="https://dsparks.wordpress.com/2012/07/18/mapping-public-opinion-a-tutorial/" rel="nofollow noreferrer">https://dsparks.wordpress.com/2012/07/18/mapping-public-opinion-a-tutorial/</a>:<a href=" " rel="nofollow noreferrer"><img src=" " alt="enter image description here"></a>

I have a data <a href="https://docs.google.com/spreadsheets/d/1tE0hxVftprlPDq_7Zgox2MaFDvtBfCbV0zVWTDyQomI/edit?usp=sharing" rel="nofollow noreferrer">here</a> that gives a contour plot like this in
Code:
plot_ly
but i want this over the map given by latitudes and longitudes.

<a href=" " rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ar5IX.jpg" alt="enter image description here"></a>

Please guide me on how this can be done. Any links to potential answers or codes would be helpful.