improve computation speed view mode (many dots)
Open
Nobody has claimed this yet.
Finetuning
View-mode
- Dominant language
- R
- Stars
- 907
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
library(leaflet)
library(leafgl)
library(sf)
n = 1e6
df1 = data.frame(id = 1:n,
x = rnorm(n, 10, 3),
y = rnorm(n, 49, 1.8))
pts = st_as_sf(df1, coords = c("x", "y"), crs = 4326)
options(viewer = NULL) # view in browser
leaflet() %>%
addProviderTiles(provider = providers$CartoDB.DarkMatter) %>%
addGlPoints(data = pts, group = "pts") %>%
setView(lng = 10.5, lat = 49.5, zoom = 6)
About 7 seconds before browser window is opened.
tmap_devel_mode()
tm_shape(pts) +
tm_dots()
About 30 seconds....
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the supplied R examples using leaflet/addGlPoints and tmap_devel_mode with tm_shape and tm_dots, and compare the time before the browser opens. Trace the relevant rendering entry points for both view modes; done means the many-dot computation is measurably faster without changing the displayed map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100