視覺化子集

使用 R 的 Trelliscope 視覺化巨量資料

Ryan Hafen

Author, TrelliscopeJS

細看子集視覺化

使用 R 的 Trelliscope 視覺化巨量資料

探查小費金額分布

問題: 現金付款會有小費嗎?

使用 R 的 Trelliscope 視覺化巨量資料

計程車資料的子集

性質相同的行程,車資與小費應該相近。

  • 最熱門路線: 曼哈頓 Upper East Side 南到 Upper East Side 北
  • 只納入現金與信用卡交易
  • 5,187 筆觀測

使用 R 的 Trelliscope 視覺化巨量資料

總車資 vs. 行程時間

ggplot(tx_pop, aes(trip_duration, total_amount)) +
  geom_point(alpha = 0.2)

使用 R 的 Trelliscope 視覺化巨量資料

用分位數圖比較現金/卡的分布

ggplot(tx_pop, aes(sample = total_amount, color = payment_type)) +
  geom_qq(distribution = stats::qunif) +
  ylim(c(3, 20))

使用 R 的 Trelliscope 視覺化巨量資料

一起來練習吧!

使用 R 的 Trelliscope 視覺化巨量資料

Preparing Video For Download...