Piggybacking and Hopefully Publicizing R Experts

April 9, 2012 | klr

I was inspired by the Revolution Analytics blog post on the d3.js style calendar heat map that Paul Bleicher from Humedica developed in R.  In an effo...
[Read more...]

Japan Trade by Geographic Region

March 12, 2012 | klr

To further the analysis presented in Japanese Trade and the Yen, I thought I would take the more granular data provided by the Japanese Ministry of Finance on trade by geographic region.  Of course, I will use R to read, analyze, and plot the .csv...
[Read more...]

The reshape function

February 9, 2012 | Markus Gesmann

The other day I wrote about the R functions by, apply and friends, which allow me to operate on subsets of data. All those functions work nicely, if the data is given in the right format. More often than not it isn't and I have to reshape the data befo...
[Read more...]

More Beautiful Growth of $1 Chart

February 6, 2012 | klr

With all my recent focus on reporting and visualization, you might think that I have the investments all figured out.  Unfortunately, that is not the case, and I will resume more standard investment and systems posts soon.  I did want to shar...
[Read more...]

Quick Update on the Components of Bond Returns

January 12, 2012 | klr

In Real Squeeze, -1% Guaranteed Real Real Return! Yummy??, and Historical Sources of Bond Returns, I offer some historical perspective on the only sources of bond returns: inflation, real returns, and credit.  Assuming no credit risk in US Treasur...
[Read more...]

Extreme Bond Returns

January 6, 2012 | klr

20 years of data is nowhere near enough to satisfy my insatiable appetite for bigger datasets.  While I showed Record Long Term Treasury Returns with Vanguard’s US Long Treasury mutual fund, its 20 year life is not sufficient to give me comfort ...
[Read more...]

Record Long Term Treasury Returns

December 21, 2011 | klr

I mistakenly assume everyone knows that US Treasury Returns have been extreme in 2011.  As we near the end of the year, I thought it would be beneficial to look at the world’s best performer while incorporating some new graphical techniques.&nbs...
[Read more...]

Lattice Explore Bonds

December 16, 2011 | klr

Since my fifth most popular post has been Bond Market as a Casino Game Part 1, I thought I would use Vanguard Total US Bond Market mutual fund (VBMFX) monthly returns to build our skills in the lattice R package and help visualize the unbelievable run ...
[Read more...]

Lattice when modeling, ggplot when publishing

October 17, 2011 | Luis

When working in research projects I tend to fit several, sometimes quite a few, alternative models. This model fitting is informed by theoretical considerations (e.g. quantitative genetics, experimental design we used, our understanding of the process under study, etc.) but … Continue reading → [Read more...]

Setting plots side by side

October 11, 2011 | Luis

This is simple example code to display side-by-side lattice plots or ggplot2 plots, using the mtcars dataset that comes with any R installation. We will display a scatterplot of miles per US gallon (mpg) on car weight (wt) next to … Continue reading → [Read more...]

All combinations for levelplot

October 7, 2011 | Luis

In a previous post I explained how to create all possible combinations of the levels of two factors using expand.grid(). Another use for this function is to create a regular grid for two variables to create a levelplot or a … Continue reading → [Read more...]

Comparing Two Distributions

August 29, 2011 | Kay Cichini

Here I compare two distributions, flowering duration of indigenous and allochtonous plant species. The hypothesis is that alien compared to indigenous plant species exhibit longer flowering periods. Read more » [Read more...]

Model Validation: Interpreting Residual Plots

July 18, 2011 | Daniel Hocking

When conducting any statistical analysis it is important to evaluate how well the model fits the data and that the data meet the assumptions of the model. There are numerous ways to do this and a variety of statistical tests to evaluate deviations from model assumptions. However, there is little ...
[Read more...]


July 6, 2011 | Oscar Perpiñán Lamigueiro

The raster package defines classes and methods for spatial raster data access and manipulation. The new rasterVis package complements raster providing a set of methods for enhanced visualization and interaction. It is now at CRAN. Several examples can ... [Read more...]

Great circles, raster, sp and lattice

May 20, 2011 | Oscar Perpiñán Lamigueiro

Recently I found a post at FlowingData with a detailed tutorial to map connections with great circles with R. The tutorial of FlowingData is excellent, but I feel more comfortable with the sp classes and methods, and with the lattice and latticeExtra packages. Besides, I want to use the free ... [Read more...]

Alpha shapes with R and lattice

April 7, 2011 | Oscar Perpiñán Lamigueiro

What are the alpha shapes?: “The concept of alpha shapes formalizes the intuitive notion of “shape” for spatial point set data, which occurs frequently in the computational sciences. An alpha shape is a concrete geometric object that is uniquely defined for a particular point set.[...] Alpha shapes are generalizations of ... [Read more...]
1 2 3

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)