Visualizations in R

Computerworld’s Sharon Machlis [1] shows examples for  5 data visualizations in 5 minutes: each in 5 lines or less of R . This is my version of it using IMDB data

[1] Also worth checking out her favorite R packages for data visualization and munging

Correlation Visualization


> cor(data[6:9])
            IMDbRating Runtime        Year  NumVotes
IMDbRating 1.000000000      NA 0.008574095 0.5748866
Runtime             NA       1          NA        NA
Year       0.008574095      NA 1.000000000 0.5263616
NumVotes   0.574886602      NA 0.526361607 1.0000000
library(corrgram)
corrgram(data[6:9], upper.panel = panel.pie, lower.panel = panel.pts)
Corrgram_imdb
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s