Blog Archives

R User Group in Birmingham, AL

September 11, 2014
By

If Birmingham, UK has one, then Birmingham, AL, USA should too. There is a big gaping hole in R user groups between Georgia and Texas that I think needs filling.  Way back in 2011, I weakly posted R User Group Birmingham Alabama, but this time I am mo...

Read more »

Frazzini goes French

September 9, 2014
By

A kind reader commented “Don’t know if you have seen it, but Frazzini goes French now too” .  I have profusely thanked and praised Kenneth French for his incredible data library.  Now, it appears I’ll have to repeatedly do the same for Andrea...

Read more »

Fama/French Factors in 1 line of code

August 11, 2014
By

In the past, getting Fama/French factors from the Kenneth French dataset involved a convoluted procedure to download the zip file, unzip the file, clean the data, and convert to xts.  Now with Quandl, we can do it simply in one line of code.  Note: ...

Read more »

Refresh Old rCharts+flickr post with httr and pipeR

July 30, 2014
By

The R world keeps moving, and I noticed this old post didn’t work anymore, so I have rewritten it to use Hadley Wickham's httr instead of Rflickr for two reasons: Rflickr is not working for me anymore httr is a very helpful package for navigating the "what was scary to me" world of http and oauth In...

Read more »

Chart from R + Color from Javascript

July 22, 2014
By

Another color experiment combining resources from R and Javascript.  I just wish I could do Mean Phylogenetic Distance in Javascript like rPlotter.  I enjoyed using d3.js zoom behavior to pan and zoom the image on canvas.  Also, filedrop.js made the...

Read more »

Alternate Price Plots | ggplot2 + magrittr

July 17, 2014
By

code{white-space: pre;} pre:not() { background-color: white; } if (window.hljs && document.readyState && document.readyState === "complete") { window.setTimeout(function() { hljs.initHighlighting(); }, 0);} Just some quick experiments with ggplot2 + magrittr to plot prices differently than the traditional ways. We wi€™ll get daily data on...

Read more »

Pick a Color Site built in R with Shiny tags %$%

July 16, 2014
By

I started down the color path with yesterday’s post Palette of Colors from Image %>% ggplot2 %>% rCharts + dimple.js.  Although R has lots of tools, such as RColorBrewer and the mentioned rPlotter, javascript does too with Gregor Aisch's chroma.js and this translated-from-Perl color-scheme-js. I figured I should explore these javscript color tools but not in the easy way. ...

Read more »

Palette of Colors from Image %>% ggplot2 %>% rCharts + dimple.js

July 15, 2014
By

R should be mature and dying but now, but it is instead alive and vibrant. I experiment with some of the new developments below. It is probably best to copy/paste the intro below in case you do not see the iframe content. The five purposes of this po...

Read more »

Speed Tests for Rolling/Running Functions

July 8, 2014
By

I use rolling and running functions almost daily with financial time series. In my post A Whole New World with Chains and Pipes, I made this statement I have noticed that rolling analysis with xts can sometimes be slow. as.matrix is my favorite way to ...

Read more »

Beer and Pie | rCharts pie charts with d3pie

July 3, 2014
By

In honor of the 4th of July, I thought a quick example of a pie chart on beer using the wonderful new d3pie library would be appropriate.  The rCharts binding with d3pie is simply an experiment now, but expect more in the near future.   Using slidify...

Read more »