2677 search results for "gis"

Retrieving the VIX term structure in R

November 5, 2012
By

  Much of my time lately has gone into analyzing and trading products in the volatility complex.  As a result, I regularly watch the VIX term structure for continuations or deviations from trend.  To make analysis simpler, I’ve written some… Read more ›

Read more »

Plotting letters as shapes in ggplot2

November 5, 2012
By
Plotting letters as shapes in ggplot2

This post is a little more esoteric than most, but I found myself needing to solve this problem, so I’m just passing the solution on to you. The plot above shows the distribution of DW-NOMINATE scores for the 18th Congress, with party indicated ...

Read more »

Ryan Peek on Customizing Your R Setup

November 2, 2012
By

Ryan Peek showed us how to use an .Rprofile file to customize your R setup. Here are his instructions and script: For Windows To change profile for R, go here: C:\Program Files\R\R-2.15.1\etc (or whatever version you are using) Edit the “Rprofile.site” file Restart R For Macs Create your Rprofile file. -use TextEdit or another editor to create a file called Rprofile.txt In a...

Read more »

The New Madrid Fault – Past, Present and Future

November 2, 2012
By
The New Madrid Fault – Past, Present and Future

New Madrid, Territory of Missouri, March 22, 1816 Dear Sir, In compliance with your request, I will now give you a history, as full in detail as the limits of the letter will permit, of the late awful visitation of Providence in this place and vicinity.  On the 16th of December, 1811, about two o'clock, A.M., we were visited by a violent...

Read more »

GGtutorial: Day 5 – Gradient Colors and Brewer Palettes

November 2, 2012
By
GGtutorial: Day 5 – Gradient Colors and Brewer Palettes

So, continuing with the short tutorials on how to do relatively simple (but sometimes very frustrating things) in ggplot, today’s post looks at how to use gradient colors and Brewer colors to color either continuous or discrete dependent variab...

Read more »

Watch Obama and Romney criss-cross the US

November 1, 2012
By
Watch Obama and Romney criss-cross the US

The Washington Post has an interactive graphic showing the rate at which the US presidential candidates Barack Obama and Mitt Romney have visited the various states for campaign rallies and fundraisers. Here's how it looks today: You can clearly see the focus on key swing states like Florida and Ohio, as well as non-competitive (but donor-rich) states like California...

Read more »

Variable probability Bernoulli outcomes – Fast and Slow

November 1, 2012
By
Variable probability Bernoulli outcomes – Fast and Slow

I am working on a project that requires the generation of Bernoulli outcomes. Typically, I would go about this using the built in sample() function like so: This works great and is fast, even for large n. Problem is, I want to generate each sample with its own unique probability. Seems straight forward enough, I

Read more »

Upcoming R training by Hadley Wickham: SF Dec 3-4, DC Dec 10-11

November 1, 2012
By

(By Hadley Wickham) Hi all, I’d like to let you know about four R training courses that RStudio will be offering in December: * Effective data visualization (http://bit.ly/TY2ONI) Dec 3. San Francisco, CA * Reports and reproducible research (http://bit.ly/RsZmYr) Dec 4. San Francisco, CA * Advanced R programming (http://bit.ly/RvZDsd) Dec 10. Washington, DC * Package development (http://bit.ly/UhTIWz) Dec 11....

Read more »

GGtutorial: Day 4 – More Colors

November 1, 2012
By
GGtutorial: Day 4 – More Colors

So far we’ve covered Melting and Casting data using the reshape() package and today we’re going to look at different ways of coloring and selecting palettes for plots. For these plots, we’re going to use the built in diamonds data...

Read more »

GGtutorial: Day 3 – Introduction to Colors

October 31, 2012
By
GGtutorial: Day 3 – Introduction to Colors

So, where does ggplot get its colors? If you’ve ever asked ggplot to color on the basis of a factor, you might have beeen surprised by the default color choices.  The fact is, ggplot colors factors on the basis of finding evenly spaced colors a...

Read more »