Hello, Science!:
Visualization

  • ggplot2 and Subway

    ggplot2 and Subway

    The following article caught my eye a few weeks ago: Subway Set to Overtake McD's in Omnipresence. As I am trying to learn a little bit of ggplot2 (and loving it so far!) I thought it would be fun to try and create some visuals to go with this claim.

    I used one of Microsoft’s restaurant datasets and do a simple substring match on “subway”, returning the latitude and longitude. Using the following lines of ggplot and R code

    states <- data.frame(map("state", plot=FALSE)[c("x","y")])
    colnames(states) <- c("Lon","Lat")
    ggplot(states, aes(x=Lon, y=Lat)) + geom_path()
    + geom_point(alpha=0.6,size=0.3,data=subway)

    we get a cool picture showing all of the metropolitan areas of the United States.map


    If you click on the image to zoom in you will be able to discern major highways as well. Subway is literally everywhere.

Random for time:

  1. Favor...Prize Involved :)
  2. Laying the Drama to Rest
  3. There is a Theif in Our Midst...This ISN'T a JOKE!!!!!!!
  4. I'm Tired. So the Filter in My Brain Isn't Working Properly...You'll See What I Mean.
  5. Guest Post: Farm-Raised Humor: Daily Life with My Kids
  6. Gettin' in the Picture for Mom n' Me Monday
  7. Keely's Got Questions...and I've Got Answers
  8. Andy's Answers to All of Your Questions
  9. Wiping the Slate Clean...and Ask Andy (my hubby) Anything!!!
  10. Two More Fantastic Giveaways...Adorable Sun Glasses and a Gift Certificate for Some Unique Jewelry