2341 search results for "ggplot"

Power Analysis by Simulation: R, RCT, Malaria Example

July 24, 2013
By
Power Analysis by Simulation: R, RCT, Malaria Example

I have received a number of requests for demonstration code on how to perform a power analysis using simulation in R.  I have already demonstrated howto do this in Stata but lacked the easy to use Stata command “simulate” that I preferred.  However, in a recent post I have written up a command very similar to simulate in...

Read more »

More goodies from rCharts

July 22, 2013
By
More goodies from rCharts

The guys developing rCharts continue to release enhancements by the day and I have taken advantage to update a couple of Shiny apps The CRAN download app now sports the new exporter feature so that any chart a user comes up with can be saved as a SVG vector, PNG or JPEG image or as

Read more »

Modeling Match Results in La Liga Using a Hierarchical Bayesian Poisson Model: Part one.

July 21, 2013
By
Modeling Match Results in La Liga Using a Hierarchical Bayesian Poisson Model: Part one.

This is a slightly modified version of my submission to the UseR 2013 Data Analysis Contest which I had the fortune of winning :) The purpose of the contest was to do something interesting with a dataset consisting of the match results from the last five seasons of La Liga, the premium Spanish football (aka soccer) league. In...

Read more »

Did the pattern of rain change in the last 100 years?

July 21, 2013
By
Did the pattern of rain change in the last 100 years?

Last week I showed rain data from six stations in Netherlands years 1906 till now. The obvious next question is; did it change? A surprisingly difficult question. The data is not normal distributed, but it is time-correlated, location correlated.T...

Read more »

A Quick and Dirty Guide to Exploratory Data Visualization

July 20, 2013
By
A Quick and Dirty Guide to Exploratory Data Visualization

One of the things I've noticed teaching statistical fundamentals or working with colleagues is the lack of focus on first visually exploring the data.  Novices seem to want to jump right in with correlations and statistical tests without getting a...

Read more »

Using R and Shiny to create “Art”

July 19, 2013
By
Using R and Shiny to create “Art”

One big strength of packages like shiny is the ability to easily vary parameters and view the results, especially in plots.So here’s a small shiny app that I created to learn about reactivity, while also having fun.The idea is simple. Vary many aspects of geom_segments in ggplot, and see what emerges. The things...

Read more »

Fair weather fans? (An R scatter plot matrix)

July 18, 2013
By
Fair weather fans? (An R scatter plot matrix)

(This article was first published on Bayes Ball, and kindly contributed to R-bloggers) The Victoria HarbourCats are roughly half way through their inaugural season in the West Coast League, and currently lead the league in average attendance.  In a recent conversation with one of the team’s staff, he mentioned that after the first game in early June, the fans...

Read more »

Lilac Bloomsday Run in Graphs

July 17, 2013
By
Lilac Bloomsday Run in Graphs

The Lilac Bloomsday Run is a 7.46 miles (12 kms) race held annually in Spokane, Washington. The run was started in 1977 by Don Kardong and it saw 51,613 people register for it in 2013. In this post, I use R to collect data from their website, clean and...

Read more »

All My Roads Lead Back to Finance–PIMCO Sankey

July 17, 2013
By
All My Roads Lead Back to Finance–PIMCO Sankey

Even though the route might be circuitous, my seemingly random journeys all seem to lead back to finance.  My fun with rCharts sankey diagrams (Exploring Networks with Sankey) has led me into an exploration of the PIMCO network.  Although PIMCO is best known for its fixed income products, PIMCO has broadened its product offerings...

Read more »

ngramr – an R package for Google Ngrams

July 16, 2013
By
ngramr – an R package for Google Ngrams

The recent post How common are common words? made use of unusually explicit language for the Stubborn Mule. As expected, a number of email subscribers reported that the post fell foul of their email filters. Here I will return to the topic of n-grams, while keeping the language cleaner, and describe the R package I developed

Read more »