可视化子集

使用 R 中的 Trelliscope 可视化大数据

Ryan Hafen

Author, TrelliscopeJS

深入可视化子集

使用 R 中的 Trelliscope 可视化大数据

调查小费金额分布

问题: 现金支付有小费吗?

使用 R 中的 Trelliscope 可视化大数据

出租车数据的一个子集

相同类型的行程应有相近的车费与小费。

  • 最常见路线:曼哈顿上东区南 → 上东区北
  • 仅包含现金和信用卡交易
  • 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 可视化大数据

Passons à la pratique !

使用 R 中的 Trelliscope 可视化大数据

Preparing Video For Download...