Trelliscope 選項

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

Ryan Hafen

Author, TrelliscopeJS

Trelliscope 選項

facet_trelliscope()trelliscope() 提供多種輸出設定:

  • 用來儲存展示的目錄
  • 在同一目錄儲存多個展示
  • 提供更詳細的展示說明
  • 圖形長寬比
  • 指定預設檢視狀態
使用 R 的 Trelliscope 視覺化巨量資料

指定輸出目錄

trelliscope(dat, path = "...", ...)

ggplot(...) + ... + facet_trelliscope(path = "...", ...)

使用 R 的 Trelliscope 視覺化巨量資料
trelliscope(by_symbol,
  name = "candlestick_top500",
  desc = "2016 年交易最頻繁的 500 檔 NASDAQ 股票的 K 線圖",
  md_desc = "
## K 線圖
A [candlestick plot](https://en.wikipedia.org/wiki/Candlestick_chart)
是一種金融圖表...
..." )

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

圖形長寬比

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

圖形長寬比

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

圖形長寬比

trelliscope(dat, width = 600, height = 300, ...)

ggplot(...) + ... + facet_trelliscope(width = 600, height = 300, ...)
使用 R 的 Trelliscope 視覺化巨量資料

預設檢視狀態

trelliscope(dat, state = ..., ...)

ggplot(...) + ... + facet_trelliscope(state = ..., ...)
使用 R 的 Trelliscope 視覺化巨量資料

一起來練習吧!

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

Preparing Video For Download...