Some forks and experiments with the very fine work from Ben Moore http://rcharts.io/viewer/?6c9ed5eed37fe3c03fa5. For details on the original, please see the author's blog post http://benjaminlmoore.wordpress.com/2014/05/05/what-are-the-most-overrated-films/.
PIMCO Quantitative Research
Steve Sapra, Ph.D., CFA and Manny Hunjan, CFA
October 2013
PIMCO Quantitative Research
Steve Sapra, Ph.D., CFA and Manny Hunjan, CFA
October 2013
#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', |
rCharts Using dimple.js v2.0.0 Interpolation
Recreate the standard split step line chart from dimple.js with rCharts. For a slightly more advanced example with steps, see this grouped horizontal 100% step area chart.
Note, as of now, will need to use the dimple v2.0.0
branch of rCharts.
install_github("timelyportfolio/rCharts@dimple_v2.0.0")
rCharts Using dimple.js v2.0.0 Interpolation
Recreate the grouped horizontal 100% step area chart from dimple.js with rCharts.
Note, as of now, will need to use the dimple v2.0.0
branch of rCharts.
install_github("timelyportfolio/rCharts@dimple_v2.0.0")
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.
In rCharts issue #458, the question asked was
How do I sort with scientific notation as shown in Datatables scientific sorting plugin?
Here is a sample set of code how we can accomplish this using a modified iris
dataset. To see it, go to the rCharts viewer or play with it live.