Posts Tagged ‘ ggplot ’

Large applications of linear mixed models

October 18, 2011
By
Large applications of linear mixed models

In a previous post I summarily described our options for (generalized to varying degrees) linear mixed models from a frequentist point of view: nlme, lme4 and ASReml-R†, followed by a quick example for a split-plot experiment. But who is really … Continue reading →

Read more »

Lattice when modeling, ggplot when publishing

October 17, 2011
By
Lattice when modeling, ggplot when publishing

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 »

Software for Research, Part 3: [R], RStudio and ggplot2 for Statistics

October 17, 2011
By
Software for Research, Part 3: [R], RStudio and ggplot2 for Statistics

is an excellent open-source statistics language. It's cross-platform and free and I think it will eventually displace proprietary stat's packages due to its rapid development, speed and ease of use. So there's no time like the present to get used...

Read more »

Setting plots side by side

October 11, 2011
By
Setting plots side by side

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 »

Performance with ggplot2

September 16, 2011
By
Performance with ggplot2

Now after Reporting Good Enough to Share, let’s use ggplot2 and PerformanceAnalytics to turn this into this From TimelyPortfolio I have been notified that the colors aren’t great.  How does everyone like this? R code (click to download)...

Read more »

"My interpretation of [Leland Wilkinson’s] grammar [of statistical graphics]: —Data is the most…"

August 25, 2011
By
"My interpretation of [Leland Wilkinson’s] grammar [of statistical graphics]:
—Data is the most…"

“My interpretation of grammar : —Data is the most important thing, and the thing that you bring to the table. —Geometric objects … what you actually see on the plot: points, lines, polygons, etc. ...

Read more »

Data Driven Story Discovery: Working Up a Multi-Layered Chart

August 3, 2011
By
Data Driven Story Discovery: Working Up a Multi-Layered Chart

How many different dimensions (or “columns” in a dataset where each row represents a different sample and each column a different measurement taken as part of that sample) can you plot on a chart? Two are obvious: X and Y values, which are ideal for representing continuous numerical variables. If you’re plotting points, as in

Read more »

Join the Reserves

July 27, 2011
By
Join the Reserves

Most forget that the tremendous macro imbalances caused by the 10 Trillion in foreign reserves are just 14 years old phenomenon but the results have been and will be profound.  The buying started after the Asia Pacific collapse of 1997, and the As...

Read more »

Shorting Mebane Faber

July 19, 2011
By
Shorting Mebane Faber

Although I do not personally know Mebane Faber, I know enough that I do not want to short him. However, I thought it would be insightful to see how the short side of his “A Quantitative Approach To Tactical Asset Allocation” might look.  Once ...

Read more »

Slopegraphs in R

July 16, 2011
By
Slopegraphs in R

The internet seems abuzz this week with the "discovery" of a long-lost Edward Tufte plot type: the slopegraph. In this post, I'll show you how to create these elegant compact plots using R and ggplot2.

Read more »