search for: gavinr

Displaying 1 result from an estimated 1 matches for "gavinr".

Did you mean: gavin
2018 Jan 19
1
Leaflet maps. Nudging co-incident markers
...the Leaflet R library somehow. The only solution I could think of was to interrogate the entire dataframe, identify points that were had the same co-ords and move them diagonally apart by adding and subtracting a fixed amount of longitude and latitude from the co-ordinates. Thanks in advance. GavinR Here is the code: library(leaflet) #make data frame of points idno=c(1,2,3,4) x=c(-1.9116, -1.9116,-1.9237,-1.91848) y=c(52.4898,52.4898,52.5015,52.4851) cat=c('Gallery','Cafe','Library','Cafe') n=c('North St Gallery','Gallery cafe', 'South St...