Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # DATA, order is the position on the front page, time = hours since post submitted
  2. order time
  3. 1 17
  4. 3 17
  5. 5 19
  6. 6 18
  7. 7 19
  8. 8 19
  9. 9 21
  10. 10 19
  11. 11 21
  12. 12 21
  13. 13 21
  14. 14 21
  15. 15 21
  16. 16 22
  17. 17 19
  18. 18 20
  19. 19 21
  20. 20 21
  21. 21 21
  22. 22 22
  23. 23 19
  24. 24 22
  25. 25 20
  26. 26 21
  27. 27 17
  28. 28 21
  29. 29 21
  30. 30 23
  31. 31 22
  32. 32 21
  33. 33 23
  34. 34 21
  35. 35 23
  36. 36 23
  37. 37 22
  38. 38 >24
  39. 39 22
  40. 40 >24
  41. 41 21
  42. 42 23
  43. 43 23
  44. 45 21
  45. 46 23
  46. 47 18
  47. 48 21
  48. 49 21
  49. 50 23
  50. 51 19
  51. 52 >24
  52. 53 >24
  53. 54 >24
  54. 55 23
  55. 56 23
  56. 57 20
  57. 58 22
  58. 60 >24
  59. 61 20
  60. 62 21
  61. 63 >24
  62. 64 >24
  63. 65 20
  64. 66 20
  65. 67 22
  66. 68 22
  67. 69 >24
  68. 70 22
  69. 71 23
  70. 72 20
  71. 73 23
  72. 74 >24
  73. 75 20
  74. 76 21
  75. 77 21
  76. 78 22
  77. 79 >24
  78. 80 >24
  79. 81 19
  80. 82 17
  81. 83 22
  82. 84 >24
  83. 85 20
  84. 86 >24
  85. 87 >24
  86. 88 21
  87. 89 20
  88. 90 23
  89. 91 19
  90. 92 >24
  91. 93 21
  92. 94 22
  93. 95 >24
  94. 97 23
  95. 98 21
  96. 99 23
  97. 100 22
  98.  
  99. # R code
  100. library(ggplot2)
  101. library(dplyr)
  102.  
  103. d <- read.delim("reddit.txt", header = TRUE, sep = "\t")
  104. d$time <- ordered(d$time, levels = c("17", "18", "19", "20", "21","22", "23",">24"))
  105.  
  106.  
  107. p <- ggplot(d, aes(x = time)) +
  108. geom_bar() +
  109. theme_minimal() +
  110. labs(x = "Time in Hours Since Post Submitted")
  111. p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement