DATA VISUALIZATION WITH R
Introduction to data visualization with R. Use-cases from a real life
sergii.khomenko@stylight.c...
AGENDA

1.

Twitter word cloud

2.

User activity: The story of your data

3.

Foursquare: Places visited

Slide 2 | STYLI...
POPULARITY OF R
POPULARITY OF R

None

7

Other

70

Lisp

4

Hadoop/Pig/Hive

35

Perl

45

Unix shell/awk/gawk/sed

59

C/C++

73

MATLA...
SMM DATA FROM TWITTER

Slide 5 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
TWITTER WORD CLOUD

Fancy word cloud or inspiration for community?

Slide 6 | STYLIGHT | Proud to bleed purple | @lc0d3r a...
FIXING TWITTER OAUTH
•
•

TwitteR
Error in twInterfaceObj$doAPICall(paste("users", "show", sep = "/"), params = params, :
...
WORD CLOUD

Slide 8 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
TWITTER FOLLOWER MAP

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

Slide 10 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
RMYSQL
•
•

RMySQL

•
•

MySQL C Connector
libmysql.dll into MySQL bin folder

•

Sys.setenv(MYSQL_HOME="c:Program FilesMy...
BUT WE HAVE ONLY IP

Slide 12 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
FIRST MAP

Slide 13 | 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 ...
ANIMATE IT!

Slide 15 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
FOURSQUARE: PLACES VISITED

Slide 16 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
length(table(foursquareData$country))
[1] 8
> table(foursquareData$country)
France
Germany
9
449
The Netherlands
Ukraine
3...
RGOOGLEMAPS

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

Slide 19 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
THANKS FOR YOUR ATTENTION!
Questions?

Slide 20 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
Sergii Khomenko
Data Scientist
STYLIGHT GmbH
sergii.khomenko@stylight.com
@lc0d3r

http://www.stylight.com
Nymphenburger S...
REFERENCE LIST

•
•

•

Thoughts in plain text http://lc0.github.io/
Stack Overflow Tag Trends
http://hewgill.com/~greg/st...
Upcoming SlideShare
Loading in...5
×

Data Visualization with R

759

Published on

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

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
759
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Data Visualization with R

  1. 1. DATA VISUALIZATION WITH R Introduction to data visualization with R. Use-cases from a real life sergii.khomenko@stylight.com, @lc0d3r Slide 1 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  2. 2. AGENDA 1. Twitter word cloud 2. User activity: The story of your data 3. Foursquare: Places visited Slide 2 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  3. 3. POPULARITY OF R
  4. 4. POPULARITY OF R None 7 Other 70 Lisp 4 Hadoop/Pig/Hive 35 Perl 45 Unix shell/awk/gawk/sed 59 C/C++ 73 MATLAB 83 SAS 121 Java 139 Python 140 SQL 184 R 257 0 50 Slide 4 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng 100 150 200 250 300
  5. 5. SMM DATA FROM TWITTER Slide 5 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  6. 6. TWITTER WORD CLOUD Fancy word cloud or inspiration for community? Slide 6 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  7. 7. FIXING TWITTER OAUTH • • TwitteR Error in twInterfaceObj$doAPICall(paste("users", "show", sep = "/"), params = params, : OAuth authentication is required with Twitter's API v1.1 Slide 7 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  8. 8. WORD CLOUD Slide 8 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  9. 9. TWITTER FOLLOWER MAP Slide 9 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  10. 10. USER ACTIVITY: THE STORY OF YOUR DATA Slide 10 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  11. 11. RMYSQL • • RMySQL • • MySQL C Connector libmysql.dll into MySQL bin folder • Sys.setenv(MYSQL_HOME="c:Program FilesMySQLMySQL Server 5.5") RMySQL Slide 11 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng binary
  12. 12. BUT WE HAVE ONLY IP Slide 12 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  13. 13. FIRST MAP Slide 13 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  14. 14. 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) }) Slide 14 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  15. 15. ANIMATE IT! Slide 15 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  16. 16. FOURSQUARE: PLACES VISITED Slide 16 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  17. 17. length(table(foursquareData$country)) [1] 8 > table(foursquareData$country) France Germany 9 449 The Netherlands Ukraine 3 138 Monaco 2 Montenegro 18 Russia 15 Switzerland 3
  18. 18. RGOOGLEMAPS Slide 18 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  19. 19. RGOOGLEMAPS Slide 19 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  20. 20. THANKS FOR YOUR ATTENTION! Questions? Slide 20 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  21. 21. Sergii Khomenko Data Scientist STYLIGHT GmbH sergii.khomenko@stylight.com @lc0d3r http://www.stylight.com Nymphenburger Straße 86 80636 Munich, Germany Slide 21 | STYLIGHT | Proud to bleed purple | @lc0d3r and @stylight_eng
  22. 22. 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-foranalytics-data-mining-data-science.html
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×