Skip to content

Instantly share code, notes, and snippets.

Avatar

timelyportfolio timelyportfolio

View GitHub Profile
@timelyportfolio
timelyportfolio / .block
Last active Feb 4, 2018 — forked from wavded/fipsToState.json
State FIPS JSON
View .block
license: mit
@timelyportfolio
timelyportfolio / .block
Last active Aug 18, 2019 — forked from ramnathv/concaveman.R
Using Concaveman in R using V8 with beeswarm (fork)
View .block
license: mit
height: 100
@timelyportfolio
timelyportfolio / .block
Last active Mar 16, 2017 — forked from andrea2910/index.html
Zoomable Icicle with Labels and Breadcrumb (d3v4)
View .block
license: mit
@timelyportfolio
timelyportfolio / multi-crowbar-no-d3.js
Last active Oct 25, 2016 — forked from gka/multi-crowbar.js
like svg-crowbar, but for multiple svg elements!
View multi-crowbar-no-d3.js
// no d3 so assumes d3 v3 already loaded
var multiCrowbar = (function() {
/*
* SVG Export
* converts html labels to svg text nodes
* will produce incorrect results when used with multi-line html texts
*
* Author: Gregor Aisch
* based on https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js
@timelyportfolio
timelyportfolio / .block
Last active Oct 4, 2016 — forked from trebor/index.html
Reusable Bubble Chart
View .block
license: mit
@timelyportfolio
timelyportfolio / .block
Last active Jan 22, 2019 — forked from cmgiven/.block
Zoomable Treemap Bar Chart
View .block
license: mit
@timelyportfolio
timelyportfolio / data.json
Last active May 24, 2016 — forked from cpsievert/trisurf.R
recreate plotly python trisurf in R
View data.json
[
{
"name": "",
"i": [
73,
96,
96,
121,
98,
121,
@timelyportfolio
timelyportfolio / README.md
Created Apr 19, 2016 — forked from jcheng5/README.md
Using arbitrary Leaflet plugins with Leaflet for R
View README.md

Using arbitrary Leaflet JS plugins with Leaflet for R

The Leaflet JS mapping library has lots of plugins available. The Leaflet package for R provides direct support for some, but far from all, of these plugins, by providing R functions for invoking the plugins.

If you as an R user find yourself wanting to use a Leaflet plugin that isn't directly supported in the R package, you can use the technique shown here to load the plugin yourself and invoke it using JS code.

@timelyportfolio
timelyportfolio / README.md
Created Nov 14, 2015 — forked from monfera/.block
Real-time bandlines
View README.md

This is an initial, real time prototype of bandlines styled with a divergent ColorBrewer2 palette that is a good choice for finance and accessibility.

The implementation is in mid-transition toward using a new functional reactive programming library, flyd.

From the original bl.ock::

Bandlines were invented by Stephen Few as background for sparklines to aid quick interpretation, crucial on dashboards: *"Bandlines use horizontal bands of color in the background of the plot area to display information about the distribution of values. This information is similar to that found in a box plot. To do this you must gather information about how values related to the measure that will be featured in the sparkline are distributed during a period of history that usually extends further into the past than the values that will appear in the sparkline itself. [...] Bandlines may

@timelyportfolio
timelyportfolio / shotsign.json
Created Nov 13, 2015 — forked from pbeshai/README.md
Shooting Signatures
View shotsign.json
[{"x":0,"y":0.7984084880636605,"widthValue":158,"colorValue":0.1629224750896936},{"x":1,"y":0.765993265993266,"widthValue":145,"colorValue":0.16595424641159695},{"x":2,"y":0.7241379310344827,"widthValue":74,"colorValue":0.14788844079931118},{"x":3,"y":0.6082191780821917,"widthValue":36,"colorValue":0.09604064011114222},{"x":4,"y":0.45348837209302323,"widthValue":35,"colorValue":0.0205093443427537},{"x":5,"y":0.37333333333333335,"widthValue":39,"colorValue":-0.015647382920110142},{"x":6,"y":0.3744075829383886,"widthValue":39,"colorValue":-0.012850902701298128},{"x":7,"y":0.3926940639269407,"widthValue":37,"colorValue":0.0016039868744902042},{"x":8,"y":0.4619047619047619,"widthValue":22,"colorValue":0.07160931036145685},{"x":9,"y":0.4788135593220339,"widthValue":45,"colorValue":0.0874320387619314},{"x":10,"y":0.4979423868312757,"widthValue":45,"colorValue":0.10551911317398666},{"x":11,"y":0.4542253521126761,"widthValue":42,"colorValue":0.06070052516549129},{"x":12,"y":0.4503311258278146,"widthValue":44,"colorVa