ggplot2

Visualizing Euro 2012: First Group Games

June 12, 2012 | diffuseprior

Now that every team has played a match it will be interesting to see how this has affected the (inverse) odds of victory. Since the plot in my last post was a bit ‘busy’, I have decided to use the facet_wrap function in gglplot2 to stratify by group. Also, ... [Read more...]

Visualizing Euro 2012 with ggplot2

June 9, 2012 | diffuseprior

After scanning this paper by Zeileis, Leitner & Hornik, I thought it would be interesting to see how the victory odds for each team changes as Euro 2012 progresses. To do this, I am going to collect the daily inverse odds of a tournament victory offered by a popular betting site for ... [Read more...]

How to draw a curve() with ggplot2

June 3, 2012 | ronan

ggplot2 improves the graphics drawn with R. A (very) short adaptation time is needed to find how to make graphs equivalent to the ones of graphics. For example, to draw the curve of a function, there is no function similar to curve(). You have to use qplot() by setting the ... [Read more...]

Choosing colour palettes. Part I: Introduction

May 29, 2012 | ggplot2

In this series of three posts, we’ll look at colours in R graphics produced with ggplot2: what are the available choices of colour schemes, and how to choose a colour palette most suitable for a particular graphic? In kindergarten, choosing a co... [Read more...]

Adding watermarks to plots

May 22, 2012 | ggplot2

A question was raised today on the mailing list: Is there an easy way to add a watermark to a ggplot? There are several options, depending on the type of watermark and the required level of control over the output, add a text label using annotate (th... [Read more...]

Simple Spatial Correlograms for Cross-Country Analysis in R

May 9, 2012 | diffuseprior

Accounting for temporal dependence in econometric analysis is important, as the presence of temporal dependence violates the assumption that observations are independent units. Historically, much less attention has been paid to correcting for spatial dependence, which, if present, also violates this independence assumption. The comparability of temporal and spatial dependence ... [Read more...]

How to remember point shape codes in R

April 24, 2012 | John Mount

I suspect I am not unique in not being able to remember how to control the point shapes in R. Part of this is a documentation problem: no package ever seems to write the shapes down. All packages just use the “usual set” that derives from S-Plus and was carried ... [Read more...]

Probit/Logit Marginal Effects in R

April 23, 2012 | diffuseprior

The common approach to estimating a binary dependent variable regression model is to use either the logit or probit model. Both are forms of generalized linear models (GLMs), which can be seen as modified linear regressions that allow the dependent variable to originate from non-normal distributions. The coefficients in a ... [Read more...]

How to plot lattice and ggplot2 graphs with FastRWeb

April 10, 2012 | ronan

With print() If you are an advanced R user, you probably know the lattice and the ggplot2 packages. They allow you to plot elegant graphics with less code (Hocking, 2009 and Sueur, 2010). If you know these two packages, you should hardly use plot() for your graphs. If you read my article ... [Read more...]

Review: Kölner R Meeting 30 March 2012

April 4, 2012 | Markus Gesmann

The first Kölner R user meeting was great fun. About 20 useRs had turned up to exchange their ideas, questions and experience with R. Three talks about R & Excel, ggplot2 & XeLaTeX and Dynamical systems with R & simecol had kicked off the evening, wit...
[Read more...]

I see high frequency data

March 1, 2012 | Dzidorius Martinaitis

In the previous post I shared an example how to get high frequency data from IB broker (well, it is retail version of HFD – it has only best bid/ask and the trades). Now, once you saved some data – what should you do next? Next logical step would be data ... [Read more...]
1 2 3 4 5 11

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)