Skip to content

Commit 5d7649a

Browse files
committed
added a crosstalk script for testing
1 parent 3074556 commit 5d7649a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

scripts/crosstalk_example.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# devtools::install_github("jcheng5/d3scatter")
2+
library(d3scatter)
3+
library(crosstalk)
4+
5+
# library(leaflet)
6+
7+
shared_quakes <- SharedData$new(quakes[sample(nrow(quakes), 100),])
8+
bscols(
9+
leaflet(shared_quakes, width = "100%", height = 300) %>%
10+
addTiles() %>%
11+
addMarkers(),
12+
d3scatter(shared_quakes, ~depth, ~mag, width = "100%", height = 300)
13+
)

scripts/viztest_testing_notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## Also run
2+
3+
* crosstalk
4+
* should produce two plots. A scatter plot that highlights the markers in the leaflet plot when points are selected by click and drag
5+
```r
6+
source("scripts/crosstalk_example.R")
7+
```
8+
19
## Known Issues
210
* The top left zoom icons changed css and are now bigger
311
* The rings css is different in the new leaflet.js

0 commit comments

Comments
 (0)