Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
失われたグラフを求めて
Search
bob3bob3
September 16, 2022
Technology
1
1.1k
失われたグラフを求めて
現在ではほとんど使われなくなったグラフ表現をR言語で紹介。
Tokyo.R #101。
bob3bob3
September 16, 2022
Tweet
Share
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
1
270
Rでコンジョイント分析 2024年版
bob3bob3
0
1.3k
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
1.1k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
570
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
500
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
590
qeMLパッケージの紹介
bob3bob3
0
2k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
570
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
720
Other Decks in Technology
See All in Technology
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ #1 量子機械学習の入門
tkhresk
0
140
ドメイン特化なCLIPモデルとデータセットの紹介
tattaka
1
180
Lambda Web Adapterについて自分なりに理解してみた
smt7174
5
130
AIとともに進化するエンジニアリング / Engineering-Evolving-with-AI_final.pdf
lycorptech_jp
PRO
0
110
Clineを含めたAIエージェントを 大規模組織に導入し、投資対効果を考える / Introducing AI agents into your organization
i35_267
4
1.7k
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
200
SalesforceArchitectGroupOsaka#20_CNX'25_Report
atomica7sei
0
200
2年でここまで成長!AWSで育てたAI Slack botの軌跡
iwamot
PRO
4
770
ひとり情シスなCTOがLLMと始めるオペレーション最適化 / CTO's LLM-Powered Ops
yamitzky
0
440
GitHub Copilot の概要
tomokusaba
1
140
How Community Opened Global Doors
hiroramos4
PRO
1
120
Yamla: Rustでつくるリアルタイム性を追求した機械学習基盤 / Yamla: A Rust-Based Machine Learning Platform Pursuing Real-Time Capabilities
lycorptech_jp
PRO
4
140
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
670
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
230
It's Worth the Effort
3n
185
28k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
Designing Experiences People Love
moore
142
24k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
How GitHub (no longer) Works
holman
314
140k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Practical Orchestrator
shlominoach
188
11k
How to train your dragon (web standard)
notwaldorf
94
6.1k
Transcript
失われたグラフを求めて ~幹葉図、ヒマワリ図、顔グラフ~ Tokyo.R #101 (2022/09/17) @bob3bob3
失われたグラフを求めて • R言語はS言語のオープンソース版として生まれました。 • S言語は1976年にベル研究所で生まれました。 • R言語の内部には70年代生まれのS言語の痕跡がいくつか残っています。 • 分かりやすい例の一つがいくつかのグラフィック表現です。 •
今回はその中から幹葉図、ヒマワリ図、顔グラフを紹介します。
1970年代のベル研究所 画像引用元 :https://web.archive.org/web/20190412002447/http://www.larryluckham.com/1969%20&%2070%20-%20Bell%20Labs/album/index.ht ml
1970年代のコンピューター "VAX Console" © Michael L. Umbricht (Licensed under CC
BY 4.0)
幹葉図(stem-and-leaf plot) 確率分布を可視化するヒストグラムに似た、定量 データのインフォグラフィックの一種である。 ヒスト グラムとは異なり、最低 2桁の数値が昇順に並び、 順序ベース推論とノンパラメトリック手法を使用して いる。 基本的には2列が縦線で区切られ、左列に
幹が、右列に葉が記載される。 (Wikipediaより引 用)
幹葉図(stem-and-leaf plot) 現在ではヒストグラムに取って代わられた。
顔グラフ チャーノフの顔グラフ。 応用数学者、統計学者、物理学者である Herman Chernoffが1973年に発明した、多変量データを人 間の顔の形に表示するものである。目、耳、口、鼻 などの個々のパーツは、その形、大きさ、配置、向 きによって変数の値を表す。人間は顔を容易に認 識し、小さな変化にも難なく気づくことができるた め、顔を使うことにした。顔の特徴は知覚される重
要度が異なるため、変数を特徴にマッピングする 方法は慎重に選択する必要がある。例えば、目の 大きさや眉の傾きは重要な重みを持つことが分 かっている。(Wikipediaより引用)
顔グラフ 現在では、平行座標プロット、レーダーチャートなどに取って代わられた。
顔グラフ # 顔グラフ library(tidyverse) library(aplpack) palmerpenguins::penguins |> group_by(species) |> summarise(
bill_length_mm = mean(bill_length_mm, na.rm = TRUE), bill_depth_mm = mean(bill_depth_mm, na.rm = TRUE), flipper_length_mm = mean(flipper_length_mm, na.rm = TRUE), body_mass_g = mean(body_mass_g, na.rm = TRUE) ) |> select(!species) |> faces( labels=c("アデリーペンギン", "ヒゲペンギン", "ジェンツーペンギン"), main="ペンギンの顔" ) 青木先生(元群馬大)作 成の関数もある。 http://aoki2.si.gunma-u. ac.jp/R/face.html
ひまわり図 散布図において、点が重複する度合をヒマワリの 花びらのように表示させたグラフ。 HistData::Galton |> sunflowerplot()
ひまわり図 現代だと、点の透明度で重複を表現する方法 やバブルチャートなどがある。
Enjoy!