Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Data Visualization with R

Data Visualization with R

Introduction to data visualization with R. Use-cases from a real life

Sergii Khomenko

January 23, 2014
Tweet

More Decks by Sergii Khomenko

Other Decks in Programming

Transcript

  1. Slide 1 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng Introduction to data visualization with R. Use-cases from a real life [email protected], @lc0d3r DATA VISUALIZATION WITH R
  2. AGENDA Slide 2 | STYLIGHT | Proud to bleed purple

    | @lc0d3r and @stylight_eng 1. Twitter word cloud 2. User activity: The story of your data 3. Foursquare: Places visited
  3. Slide 4 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng POPULARITY OF R 257 184 140 139 121 83 73 59 45 35 4 70 7 0 50 100 150 200 250 300 R SQL Python Java SAS MATLAB C/C++ Unix shell/awk/gawk/sed Perl Hadoop/Pig/Hive Lisp Other None
  4. Slide 5 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng SMM DATA FROM TWITTER
  5. Slide 6 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng TWITTER WORD CLOUD Fancy word cloud or inspiration for community?
  6. Slide 7 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng FIXING TWITTER OAUTH • TwitteR • Error in twInterfaceObj$doAPICall(paste("users", "show", sep = "/"), params = params, : OAuth authentication is required with Twitter's API v1.1
  7. Slide 8 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng WORD CLOUD
  8. Slide 9 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng TWITTER FOLLOWER MAP
  9. Slide 10 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng USER ACTIVITY: THE STORY OF YOUR DATA
  10. Slide 11 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng RMYSQL • RMySQL • RMySQL binary • MySQL C Connector • libmysql.dll into MySQL bin folder • Sys.setenv(MYSQL_HOME="c:\\Program Files\\MySQL\\MySQL Server 5.5")
  11. Slide 12 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng BUT WE HAVE ONLY IP
  12. Slide 13 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng FIRST MAP
  13. Slide 14 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng MAKE IT MOVING • ImageMagic • MPG - convert -quality 100 -delay 100 *.png stylight-signups.mpg • GIF - convert -quality 100 -delay 100 *.png -loop 0 stylight-signups.gif • library(animation) saveGIF({ for (i in 1:10) plot(runif(10), ylim = 0:1) })
  14. Slide 15 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng ANIMATE IT!
  15. Slide 16 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng FOURSQUARE: PLACES VISITED
  16. Slide 18 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng RGOOGLEMAPS
  17. Slide 19 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng RGOOGLEMAPS
  18. Slide 20 | STYLIGHT | Proud to bleed purple |

    @lc0d3r and @stylight_eng THANKS FOR YOUR ATTENTION! Questions?
  19. Sergii Khomenko Data Scientist STYLIGHT GmbH [email protected] @lc0d3r http://www.stylight.com Nymphenburger

    Straße 86 80636 Munich, Germany Slide 21 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  20. REFERENCE LIST • Thoughts in plain text http://lc0.github.io/ • Stack

    Overflow Tag Trends http://hewgill.com/~greg/stackoverflow/stack_overflow/tags/# !r+sas+data+visualization • KDnuggets: Top Languages for analytics, data mining, data science http://www.kdnuggets.com/2013/08/languages-for- analytics-data-mining-data-science.html