Skip to content

Instantly share code, notes, and snippets.

View timelyportfolio's full-sized avatar

timelyportfolio timelyportfolio

View GitHub Profile
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:01
dimple + rCharts on Reinhart (1998)

data source:

Leading Indicators of Currency Crises
Carmen Reinhart and Graciela Kaminsky and Saul Lizondo
University of Maryland
1998
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:02
rCharts+nvd3 | PIMCO Active Share Research
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:02
rCharts+dimple | PIMCO Active Share Research
@timelyportfolio
timelyportfolio / anal.r
Last active August 29, 2015 14:02 — forked from michalskop/anal.r
#setwd('~/uhk/dev/ar_ondrej_plachy/institution/')
data = read.table('data.tsv',sep="\t",header=TRUE)
data$time = data$year - 1983
data$random1 = rnorm(336, mean=0, sd=0.01)
data$random2 = rnorm(336, mean=0, sd=0.01)
attach(data)
fbalm2 =
ifelse(balance_of_parties_mandates<= 0.25, '0.0-0.25',
ifelse(balance_of_parties_mandates <= 0.5, '0.25-0.5',
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:03
rCharts + dimple v2.0.0 step interpolation example 1
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:03
rCharts + dimple v2.0.0 step interpolation example 2
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:03
rCharts Hijacks Dimple's Tooltip

In an email conversation, someone asked:

How might I delete some lines in the default dimplejs tooltip?

This question comes up because the user felt like the dimplejs tooltip duplicated info that already appeared in the legend. This hack will require install_github("timelyportfolio/rCharts@dimple_v2.0.0") [2014-07-02] until the newest dimple version and functionality gets pulled into the primary rCharts repo.

The code below will hijack dimplejs getTooltipText with rCharts and allow us to change what text we see. If you look closely at the result, you should notice that even though we specify a z it does not appear and for effect we added a worthless custom line. This all shows up here.

@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:03
rCharts + datatables | sort with scientific notation
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:03
rCharts + d3pie chart of US Beer