Skip to content
Prev 28889 / 29559 Next

Importing xlsm & blinking circilemarkers

On Thu, 17 Mar 2022, sownal chand wrote:

            
No idea, sounds like something for shiny, which I avoid. Interactive 
graphics are very hard to do right at the best of times.
library(sf)
rainfall <- st_as_sf(read.csv("RainfalSample.csv"), coords=c("Long",
  "Lat"), crs="OGC:CRS84")
library(tmap)
tmap_mode("view")
tm_shape(rainfall) + tm_symbols(size=0.0025, col="Rainfall.mm.",
  style="fixed", breaks=c(0, 20, 30, 50, Inf), pal=c("green", "yellow",
  "orange", "red"))

may be fairly close. tmap is a package using leaflet internally, mapview 
is another such package. Many of the symbols overlap, so are not very 
legible.

Hope this helps,

Roger