2263 search results for "ggplot"

Short tales of two NCAA basketball conferences (Big 12 and West Coast) using graphs

August 12, 2013
By
Short tales of two NCAA basketball conferences (Big 12 and West Coast) using graphs

Having been at the University of Kansas (Kansas Jayhawks) as a student and now working at Gonzaga University (Gonzaga Bulldogs), discussions about college basketball are inescapable. This post uses R, ggmap, ggplot2 and the shiny server to graphically ...

Read more »

Finding Correlations in Data with Uncertainty

August 11, 2013
By
Finding Correlations in Data with Uncertainty

A week or so ago a colleague of mine asked if I knew how to calculate correlations for data with uncertainties. Now, if we are going to be honest, then all data should have some level of experimental or measurement error. However, I suspect that in the majority of cases these uncertainties are ignored when

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 »

How to choose a new business location with R

August 6, 2013
By
How to choose a new business location with R

This guest post is by Rodolfo Vanzini. Rodolfo is senior partner at eXponential.it — an asset management consultancy based in Italy — and advises clients on investment management issues. He taught at the University of Siena and is an analytics professional. With an economist education and a financial markets expertise four years ago I thought I couldn't be of...

Read more »

How Much Should Bale Cost Real?

August 5, 2013
By
How Much Should Bale Cost Real?

It looks increasingly likely that Gareth Bale will transfer from Tottenham to Real Madrid for a world record transfer fee. Negotiations are ongoing, with both parties keen to get the best deal possible deal with the transfer fee. Reports speculate that this transfer fee will be anywhere in the very wide range of £80m to

Read more »

More rainfall calculations – REML

August 4, 2013
By
More rainfall calculations – REML

I wanted to have a look at various REML methods for a long time. The rainfall data seemed a nice example. On top of that, FreshBiostats had a blog post 'Mixed Models in R: lme4, nlme, or both?'. So lme4 it is.The data  As described before; th...

Read more »

Classification of the Hyper-Spectral and LiDAR Imagery using R (mostly). Part 2: Classification Approach and Spectre Profile Creation

August 3, 2013
By
Classification of the Hyper-Spectral and LiDAR Imagery using R (mostly). Part 2: Classification Approach and Spectre Profile Creation

IntroductionThis is the second part of my post series related to hyper-spectral and LiDAR imagery using R. See other parts: Part 1: Result Evaluation. In this part I will describe my general approach to classification process and then I will show you how to create cool spectral response plots like this:

Read more »

The tenure of Doctor Who incarnations

August 3, 2013
By
The tenure of Doctor Who incarnations

With a new actor being announced tomorrow, it got me pondering about the good Doctor. Specifically, who is the longest serving doctor? IMDB has the data: Let’s plot it to see how it changes over time. There was a definite shift after Tom Baker towards a shorter term as the doctor. In terms of screen

Read more »

Occupancy model fit & AUC

July 30, 2013
By
Occupancy model fit & AUC

Occupancy models are used to understand species distributions while accounting for imperfect detection. In this post, I’ll demonstrate a method to evaluate the performance of occupancy models based on the area under a receiver operating characteristic curve (AUC), as published last year by Elise Zipkin and colleagues in Ecological Applications. Suppose we are to fit a multi-year occupancy...

Read more »