Monthly Archives: September 2009

R Function of the Day: cut

September 23, 2009
By

This post originally appeared on my Wordpress blog on September 23, 2009. I present it here in its original form. The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple ex...

Read more »

ggplot2: Back-to-back Bar Charts

September 23, 2009
By
ggplot2: Back-to-back Bar Charts

On the ggplot2 mailing-list the following question was asked: How to create a back-to-back bar chart with ggplot2? For anyone who don’t know what I am talking about, have a look on a recent paper from the EU. I’d like to create plots like the graphs 5,6,18 in the paper. An example graph from the above report is

Read more »

ggplot2: Back-to-back Bar Charts

September 23, 2009
By
ggplot2: Back-to-back Bar Charts

On the ggplot2 mailing-list the following question was asked: How to create a back-to-back bar chart with ggplot2? For anyone who don’t know what I am talking about, have a look on a recent paper from the EU. I’d like to create plots like the graph...

Read more »

Solar Trends: Total Solar Irradiance Since 1611 – Update

September 23, 2009
By
Solar Trends: Total Solar Irradiance Since 1611 – Update

This is the 2nd in a series of  posts I will be doing on solar trends. In this post, I show how to retrieve online daily satellite and reconstructed TSI data,   plot the daily data as well as annual and 11 year moving average smooths for the data series.  Links to

Read more »

High yield spread

September 23, 2009
By
High yield spread

Last week I had opportunity to participate at NYU, where one of the lecturers was Z-score man’s. He spent same time talking about the high yield spread as measure of the macro economy. Then spread is high (junk bonds become very cheap and Treasuries become ‘gold’) -  crisis is right here. Intuitively, it is similar

Read more »

R Sessions 33: Select (nested) observations with equal number of occurences

September 23, 2009
By

Recently, I was contacted with an question about R code. A befriended researcher was working with nested data, which was unbalanced. He was working with data in a ‘long’ format: all observations nested within the same group had the same ...

Read more »

RGG #158:161: examples of package IDPmisc

September 23, 2009
By
RGG #158:161: examples of package IDPmisc

three new graphs have made their way to the graph gallery, submitted by Reto Burgin Image lag plot matrix Image scatter plot matrix Regular time series

Read more »

R Function of the Day: rle

September 22, 2009
By

Edit: This post originally appeared on my Wordpress blog on September 22, 2009. I present it here in its original form. The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on sim...

Read more »

R Function of the Day: rle

September 22, 2009
By

Edit: This post originally appeared on my Wordpress blog on September 22, 2009. I present it here in its original form. The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on sim...

Read more »

Emacs Key Binding for eval-defun in lisp-mode

September 22, 2009
By
Emacs Key Binding for eval-defun in lisp-mode

When I use R in Emacs through the ESS package, C-c C-c in a .R buffer will send a “block” of code to the inferior R process for evaluation. This was added just a few years ago, but my fingers are now trained to use that key combination for evaluating any block of code. Since

Read more »