$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
plotlyで動くグラフを作る
Search
takuma koshiishi
January 21, 2023
Technology
0
1.2k
plotlyで動くグラフを作る
takuma koshiishi
January 21, 2023
Tweet
Share
More Decks by takuma koshiishi
See All by takuma koshiishi
R package for a team
kosshi
2
2.4k
Other Decks in Technology
See All in Technology
SQLだけでマイグレーションしたい!
makki_d
0
1.1k
コンテキスト情報を活用し個社最適化されたAI Agentを実現する4つのポイント
kworkdev
PRO
1
1.8k
.NET 10の概要
tomokusaba
0
130
AlmaLinux + KVM + Cockpit で始めるお手軽仮想化基盤 ~ 開発環境などでの利用を想定して ~
koedoyoshida
0
130
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
0
270
AI との良い付き合い方を僕らは誰も知らない
asei
0
190
Amazon Connect アップデート! AIエージェントにMCPツールを設定してみた!
ysuzuki
0
120
Amazon Bedrock Knowledge Bases × メタデータ活用で実現する検証可能な RAG 設計
tomoaki25
6
1.7k
AIの長期記憶と短期記憶の違いについてAgentCoreを例に深掘ってみた
yakumo
4
470
AgentCoreとStrandsで社内d払いナレッジボットを作った話
motojimayu
1
390
CARTAのAI CoE が挑む「事業を進化させる AI エンジニアリング」 / carta ai coe evolution business ai engineering
carta_engineering
0
2.1k
AWS re:Invent 2025 re:Cap LT大会 データベース好きが語る re:Invent 2025 データベースアップデート/セッションの紹介
coldairflow
0
130
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
60
37k
Skip the Path - Find Your Career Trail
mkilby
0
23
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
390
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
180
The Cost Of JavaScript in 2023
addyosmani
55
9.4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
280
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
510
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Become a Pro
speakerdeck
PRO
31
5.7k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
For a Future-Friendly Web
brad_frost
180
10k
Transcript
plotlyで 動くグラフを作る Takuma Koshiishi @kotaku08 Tokyo.R #103 2023/1/21
⾃⼰紹介 2 はじめまして こっしー 株式会社ヴァリューズ/データアナリスト @kotaku08 @kosshi • 4年ぶりのTokyo.R •
今も会社でR推進してる • plotly×shiny本の翻訳に参加
今⽇の⽬的 3 plotly触ってみようかな!と思ってもらう
Plotly 4 • ⼤元はJavascriptのデータ可視化ライブラリ(plotly.js) • インタラクティブに操作可能なぐるぐる動くグラフが描画で きる • Rのploltyパッケージなど、他⾔語から利⽤するクライアント が⽤意されている
← 今⽇plotlyと⾔ったらこのRパッケージ • データアナリストにとっては探索的データ分析とコミュニ ケーション(ダッシュボード作成など)に有益
Plotlyでダッシュボード 5 https://plotly-r.com/linking-views-with-shiny.html
ここを推したいPlotly 6 • とにかく動く!楽しい • 多様な出⼒形式。HTML、SVG、PDFなどで保存可能。 Rmarkdown、shinyとも連携できる。 • ggplot2と連携できて、初めの⼀歩の敷居が低い。今⽇か ら使える!
2つのグラフの描画⽅法① 7 ①ggplot2を利⽤して描画 ◦ggplot2のグラフをggplotly()に渡すだけ で簡単! ◦複雑なことでもggplot2とその拡張パッ ケージに任せられるのが嬉しい! ×対応してないgeomもある。
2つのグラフの描画⽅法② 8 ②plotlyの記法で描画 ◦plotlyパッケージ独⾃の書き⽅だが、 ggplot2の書き⽅が⼟台にあり、Rユーザに 優しい。 ◦インタラクティブな点のカスタマイズ性 に優れる。習熟するならこっち。
まとめ 9 • plotlyパッケージで動くグラフが作れるよ! • ggplot2と直接連携しているし、⽂法も似ているので ggplot2ユーザは簡単に始められるよ! • ⼀歩踏み出したらインタラクティブ性を極める旅に出かけ よう!(グラフ同⼠の連携やshinyアプリ作成など)
Enjoy! 10 仕事でR使いたい⼈募集しています! 興味がある⽅是⾮DMください!
参考⽂献 11 • 「Interactive web-based data visualization with R, plotly,
and shiny」https://plotly-r.com/index.html • 「Rによるインタラクティブなデータビジュアライゼー ション: 探索的データ解析のためのplotlyとshiny」