graphics

Mandelbrot Set, evolved

September 30, 2010 | David Smith

The Mandelbrot Set is perhaps the most famous fractal of all time. It's simple in its definition: iterate the complex equation zn+1 = zn2 + c (starting with z0 = 0) for various values of c, and if doesn't go to infinity then c is part of the Mandelbrot Set. The result, however, is ... [Read more...]

Example 8.5: bubble plots part 3

September 14, 2010 | Ken Kleinman

An anonymous commenter expressed a desire to see how one might use SAS to draw a bubble plot with bubbles in three colors, corresponding to a fourth variable in the data set. (x, y, z for bubble size, and the category variable.) In a previous entries...
[Read more...]

Eigenimages: The AT&T Cambridge Faces Database

September 7, 2010 | Matt Shotwell

I picked up the AT&T Laboratories Cambridge database of faces for a clustering application. The database consists of images of 40 distinct subjects, each in 10 different facial positions and expressions. Typically, the goal of clustering in these data is to recover the ‘true’ partition, or that which isolates images of ... [Read more...]

Barchart or Dotchart?

September 7, 2010 | David Smith

Which of the following two charts (both created with R) to you prefer? This dotchart: Or this bar chart? Andrew Gelman (who, incidentally, is speaking at the October NYC UseR meeting) prefers the dotchart prefers a line plot (update: see Gelman's comment, below), but personally I think the bar chart ... [Read more...]

Competition: Data Visualization with ggplot2

September 3, 2010 | David Smith

The ggplot2 package for R is an amazing system for creating entirely new visualizations of data. It allows data analysts to tell a detailed, meaningful and yet easy-to-interpret story about complex and/or unusual data sets. To promote more data stories being told, ggplot2 author Hadley Wickham has organized a ... [Read more...]

Example 8.3: pyramid plots

August 30, 2010 | Nick Horton

Pyramid plots are a common way to display the distribution of age groups in a human population. The percentages of people within a given age category are arranged in a barplot, often back to back. Such displays can be used distinguish males vs. femal...
[Read more...]

How extreme is the Russian heatwave?

August 20, 2010 | David Smith

The devastating heatwave in Russia now seems to be over, but not before killing thousands, causing extensive wildfires, and destroying crops. But how severe was this heatwave, compared to past summers? Physicist and climate scientist Joe Wheatley looks at the record of temperature and rainfall in Russia over the last 60 ... [Read more...]

Baseball games: getting longer?

August 11, 2010 | David Smith

ESPN's Bill Simmons (aka The Sports Guy) recently suggested that the primary cause of dwindling interest in Red Sox games by fans is that baseball games these days are too long. "It's not that fun to spend 30-45 minutes driving to a game, paying for parking, parking, waiting in line ... [Read more...]

R unfolds the history of the Afghanistan war

August 9, 2010 | David Smith

Drew Conway continues his analysis of the Wikileaks data. Having concluded that the data appear legitimate (except perhaps in one region, based on a Benford's Law analysis of the numbers in the documents), Drew follows up with a spatio-temporal analysis of activity within Afghanistan, based on the datelines of the ... [Read more...]

How to animate Google Earth with R

August 6, 2010 | David Smith

We've looked before at how you can annotate geographical maps using R, but what if you want to overlay data onto a globe of the Earth, using Google Earth? The RKML package for R (from the OmegaHat project) allows you to do just that, by providing a high-level interface from ... [Read more...]

Twenty rules for good graphics

August 6, 2010 | Rob J Hyndman

One of the things I repeatedly include in referee reports, and in my responses to authors who have submitted papers to the International Journal of Forecasting, are comments designed to include the quality of the graphics. Recently someone asked on stats.stackexchange.com about best practices for producing plots. So ...
[Read more...]

Because it’s Friday: Analytics of an Engagement

July 16, 2010 | David Smith

The always-interesting R blogger and political scientist Drew Conway -- and self-styled luckiest man on earth -- just announced some very happy news: he just got engaged to his future wife! Congratulations, Drew! (Drew proposed the traditional way, on a lovely European vacation. But if he'd just held off a ... [Read more...]

Charting the World Cup

July 12, 2010 | David Smith

Now that Spain has won the World Cup, it's interesting to go back and look at some metrics from the matches and see if we can tease out what characteristics made for a winning Cup team this time around. Fortunately, the Guardian's Data Blog has made a wealth of World ... [Read more...]

Visualizing the census

July 9, 2010 | David Smith

Now that the 2010 survey is over, you might be wondering what we can learn from the data when the aggregated results are published. For a good guide to the kinds of questions you'll be able to answer, take a look at StatJump, where you can see tables and charts of ... [Read more...]

Maps without map packages

July 1, 2010 | dan

LATITUDE + LONGITUDE + OVERPLOTTING FIX = MAPS Decision Science News is always learning stuff from colleague, physicist, mathlete, and all-around computer whiz Jake Hofman. Today, it was a quick and clean way to make nice maps in R without using any map packages: just plot the latitude and longitude of your data ... [Read more...]

ASCII Scatterplots in R

June 25, 2010 | Matt Shotwell

I really like R‘s stem function, it creates a stem-and-leaf plot right in the R console, no fancy graphics devices required! In a recent R-help post, Ralf Bierig presented a very nice ASCII scatterplot representing two densities. Unfortunately, I don’t know of any R function that will generate ... [Read more...]

The impact of the drug war in Mexico

June 18, 2010 | David Smith

For the last couple of years, Mexico has been in the midst of an escalating drug war, with violent crime on the upswing in many areas. But tracking the impact quantitatively is difficult: in Mexico, about 85% of crimes go unreported, and corruption leads to inaccurate reporting in some districts. Diego ... [Read more...]

Shrinking R’s PDF output

June 17, 2010 | Adam M. Wilson

R is great for graphics, but I've found that the PDF's R produces when drawing large plots can be extremely large. This is especially common when using spplot() to plot a large raster. I've made a 15 page PDF full of rasters that was hundreds of MB in ...
[Read more...]
1 6 7 8 9 10 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)