Blog Archives

gridSVG Multi-line Data Bind with d3–US Treasury Yields

August 14, 2013
By
gridSVG Multi-line Data Bind with d3–US Treasury Yields

If you have not read the other posts on gridSVG and d3, I recommend reading those before progressing to this one. Facets or strips are one of my favorite features of lattice and ggplot2, so of course I want to extend our d3 reverse data bind to support these small multiples.  Let’s see one way of accomplishing...

Read more »

Stocks and Bonds Behavior by Decade

August 13, 2013
By
Stocks and Bonds Behavior by Decade

I struggled with whether or not I should even post this.  It is raw and ugly, but it might help somebody out there.   I might use this as a basis for some more gridSVG posts, but I do not think I have the motivation to finish the analysi...

Read more »

PIMCO Rolling Correlation, d3, R, gridSVG, lattice | Gets An Axis

August 9, 2013
By
PIMCO Rolling Correlation, d3, R, gridSVG, lattice | Gets An Axis

Where else will you hear Pimco, rolling correlation, R, gridSVG, lattice, and d3 all in one post?  Let’s mix them all together to see what might happen.  For those here for the geekery, we will add a d3 axis for our y and it will follow the mouse.  For those who care nothing about d3 and R, you might...

Read more »

R/gridSVG/d3 Line Reverse Data Bind

August 8, 2013
By
R/gridSVG/d3 Line Reverse Data Bind

I veer from finance to tech, so let’s use some data from FRED/OECD this time.  I do not think I need to comment much on what has happened to New Car Registrations in Greece. Reverse data binding a line plot from ggplot2 or lattice is slightly more difficult than what we saw in the last post I Want...

Read more »

R on Your iPhone (Not the Way You Think)

August 8, 2013
By
R on Your iPhone (Not the Way You Think)

If you really love R, you should put it on your iPhone.  Apple gives the measurements for its products here. Let's use a little grid magic with ggplot2 to make a chart for the back of your iphone similar to this. require(grid)require(ggplot2)# thanks for the Apple measurements# https://developer.apple.com/resources/cases/x11( height = as.numeric(convertX(unit(58.55, "mm"), "in")),...

Read more »

ggplot2 meet d3

August 7, 2013
By

With great libraries, just a couple lines of code can do amazing things.  For instance, let’s limit ourselves to less than 10 lines of code and see what ggplot2 and d3 can do.  We will use gridSVG as discussed in yesterday’s post I Want ggplot2/lattice and d3 (gridSVG–The Glue) to expose ggplot2 to d3.  Thanks

Read more »

I Want ggplot2/lattice and d3 (gridSVG–The Glue)

August 6, 2013
By
I Want ggplot2/lattice and d3 (gridSVG–The Glue)

I really like interactive graphics, especially when they come straight from R.  I posted a lot about rCharts, but it is not the only way.  In my mind there are three types of glue to link R to SVG/HTML/Javascript: Let R do the data and then send the data to Javascript to create the SVG graphics....

Read more »

Slidify Did That… and That… and…

July 31, 2013
By

In my exuberance for rCharts, I have not expressed my equal love for its older sibling slidify.  I adopted slidify a little more slowly than other R bloggers Create elegant, interactive presentations from R with Slidify Interactive slides with go...

Read more »

ggplot2 with Noam Ross theme

July 26, 2013
By
ggplot2 with Noam Ross theme

When I first saw Noam Ross' blog post "The null model for age effects with overdispersed infection", I immediately liked the look of his ggplot2 graphs. I was even more delighted when I discovered that he has made his theme available on github. Even though I am all into rCharts, I still love a beautiful publication...

Read more »

All My Roads Lead Back to Finance–PIMCO Sankey

July 17, 2013
By
All My Roads Lead Back to Finance–PIMCO Sankey

Even though the route might be circuitous, my seemingly random journeys all seem to lead back to finance.  My fun with rCharts sankey diagrams (Exploring Networks with Sankey) has led me into an exploration of the PIMCO network.  Although PIMCO is best known for its fixed income products, PIMCO has broadened its product offerings...

Read more »