2061 search results for "ggplot"

ddply in action

March 7, 2013
By
ddply in action

Top Batting Averages Over Time Top Batting Averages Over Time reference:http://www.baseball-databank.org/ ShortI'm going to use plyr and ggplot2 to look at how top batting averages have changed over time First load the data: options(width = 100)library(ggplot2) ## Warning message: package 'ggplot2' was built under R version 2.14.2 library(plyr)data(baseball)head(baseball) ## ...

Read more »

Downloading CBS Fantasy Football Projections in R

March 7, 2013
By
Downloading CBS Fantasy Football Projections in R

In this post, I will show how to download CBS fantasy football projections using R. The R Script The R Script for downloading fantasy football projections from CBS is located The post Downloading CBS Fantasy Football Projections in R appeared first on Fantasy Football Analytics.

Read more »

Veterinary Epidemiologic Research: Linear Regression Part 2 – Checking assumptions

March 6, 2013
By
Veterinary Epidemiologic Research: Linear Regression Part 2 – Checking assumptions

We continue on the linear regression chapter the book Veterinary Epidemiologic Research. Using same data as last post and running example 14.12: Now we can create some plots to assess the major assumptions of linear regression. First, let’s have a look at homoscedasticity, or constant variance of residuals. You can run a statistical test, the

Read more »

Downloading CBS Fantasy Football Projections in R

March 6, 2013
By
Downloading CBS Fantasy Football Projections in R

In this post, I will show how to download CBS fantasy football projections using R.The R ScriptThe R Script for downloading fantasy football projections from CBS is located at: https://github.com/dadrivr/FantasyFootballAnalyticsR/blob/master/R%20S...

Read more »

Times per second benchmark

March 5, 2013
By

In GNU R the simplest way to measure execution time of a piece code is to use system.time. However, sometimes I want to find out how many times some function can be executed in one second. This is especially useful when we want to compare function...

Read more »

Create an R package from a single R file with roxyPackage

March 5, 2013
By
Create an R package from a single R file with roxyPackage

Documenting code can be a bit of a pain. Yet, the older (and wiser?) I get, the more I realise how important it is. When I was younger I said 'documentation is for people without talent'. Well, I am clearly loosing my talent, as I sometimes struggle to understand what I programmed years ago. Thus, anything that soothes the...

Read more »

2013 World Universities Ranking

March 4, 2013
By
2013 World Universities Ranking

The Times Higher Education (http://www.timeshighereducation.co.uk) released its World Reputation Ranking. The ranking employs survey consultation among invited-only academics to measure reputation among several universities. It is assumed to be the world’s largest opinion survey of this sort across the globe. Every year, a list of the top 100 most powerful university brands is released. Despite

Read more »

What Happened Then? Using Approximated Twitter Follower Accession to Identify Political Events

March 4, 2013
By
What Happened Then? Using Approximated Twitter Follower Accession to Identify Political Events

Following a chat with @andypryke, I thought I’d try out a simple bit of feature detection around approximated follower acquisition charts (e.g. Estimated Follower Accession Charts for Twitter) to see if I could detect dates around which there were spikes in follower acquisition. So for example, here’s the follower acquistion chart for Seem Malhotra: We

Read more »

Download Fantasy Football Projections from ESPN.com using R

March 3, 2013
By
Download Fantasy Football Projections from ESPN.com using R

In this post, I will demonstrate how to download fantasy football projections from ESPN.com using R.  Having projections allows us to do many different analyses to determine our best possible fantasy team.  The projections on ESPN.com are currently from last year—they haven't been updated yet for the upcoming season.  ESPN will update them closer to the start of...

Read more »

All That Glitters

March 3, 2013
By
All That Glitters

"The law itself follows Gold" Sextus Propertius.But what about stocks, bonds and real estate? Do they follow Gold too? Using the correlation data from my previous post, The Financial Crisis on Tape Part I, this question is easy to investigate. Indeed, ...

Read more »