Monthly Archives: June 2013

Shiny Server on CentOS

June 29, 2013
By

I’ve been enjoying working with Joe Cheng’s Shiny Server and wanted to create a quick step-by-step guide on installing it on an AWS CentOS EC2 instance as the standard Shiny Server instructions assume the typical dependencies are installed: 1. Shiny’s instructions say to install libssl-dev (sudo yum install libssl-dev), here is the CentOS equivalent : sudo yum install openssl-devel

Read more »

Reproducing R: Scripts, Documents, and Packages

June 28, 2013
By

I’m sharing the slides from the talk I’ll be giving at the Dallas R Users Group on creating R packages (and other techniques for reproducing R). I’ll introduce R scripts, reproducible R documents, and R packages. We’ll use the knitr, devtools, and roxygen2 packages in the examples. Download the slides here. If you’re unable to

Read more »

Descending Text in Righthand Margin of R Graphics à la mtext

June 28, 2013
By
Descending Text in Righthand Margin of R Graphics à la mtext

There was an R-help thread in January regarding text in the righthand margin of an R graphic, where the text should be rendered in reading order from top to bottom. The base R function mtext is used to plot text in the margin. But, mtext is only able to render text from left to right

Read more »

rCharts Remake of NYT

June 28, 2013
By
rCharts Remake of NYT

For those wondering if I have forsaken finance, the answer is no.  I just don’t think there is much to do in here besides watch and wait.  So more d3 and R as I try to distract myself from doing something dumb in the markets. This time I used rCharts and slidify to  recreate another...

Read more »

Create Word documents from R with R2DOCX

June 28, 2013
By

If you work in a corporate environment, then the Word document format is still pretty ubiquitous. Personally, I've switched to Google Docs for most of my own documents, but I still receive a couple of Words docs from others via email every day. And it's common request from clients of our Services team to generate documents in the Word...

Read more »

Testing function agruments in GNU R

June 28, 2013
By

Recently I have read a nice post on ensuring that proper arguments are passed to a function using GNU R class system. However, I often need a more lightweight solution to repetitive function argument testing.The alternative idea is to test function arg...

Read more »

Revolution Newsletter: June 2013

June 27, 2013
By

The most recent edition of the Revolution Newsletter came out a couple of weeks ago. In case you missed it, the news section is below, and you can read the full June edition (with highlights from this blog and community events) online. You can subscribe to the Revolution Newsletter to get it monthly via email. R is for Analytics:...

Read more »

dimple d3 and rCharts

June 27, 2013
By
dimple d3 and rCharts

I put together a quick tutorial combining my two favorite things: finance and interactive visualizations.  I show how to use the new dimplejs d3 library with rCharts to create some nice interactive plots of US Treasury yield data.  ...

Read more »

Graphing with fPortfolio

June 27, 2013
By
Graphing with fPortfolio

Now to making pretty-looking graphs and charts for portfolio optimization! The first thing we will do is determine the frontier for our combination of securities. Remember, the variable returnsMatrix below is a matrix of returns for all the securities in … Continue reading →

Read more »

Portfolio Optimization with fPortfolio

June 27, 2013
By
Portfolio Optimization with fPortfolio

fPortfolio contains a number of function to make portfolio optimization easier. I can compare the results I get from the functions in fPortfolio to the results from my function from the previous post. I don’t expect them to be exactly … Continue reading →

Read more »