Skip to content

Instantly share code, notes, and snippets.

@cwickham
cwickham / .block
Last active November 7, 2018 21:37 — forked from jakevdp/.block
Multi-Value Tooltip in Vega-Lite
license: MIT
library(stringr)
library(RCurl)
#Google polyline decoder borrowed from:
#http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/decode.js
DecodeLineR <- function(encoded) {
len = str_length(encoded)
encoded <- strsplit(encoded, NULL)[[1]]
index = 1
N <- 100000