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
900
失われたグラフを求めて
現在ではほとんど使われなくなったグラフ表現をR言語で紹介。
Tokyo.R #101。
bob3bob3
September 16, 2022
Tweet
Share
More Decks by bob3bob3
See All by bob3bob3
RでPSM分析
bob3bob3
0
170
Rでコンジョイント分析 2024年版
bob3bob3
0
620
『改訂新版前処理大全』の話と Apache Parquet の話 #TokyoR
bob3bob3
0
610
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
460
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
400
『データ可視化学入門』を PythonからRに翻訳した話
bob3bob3
1
480
qeMLパッケージの紹介
bob3bob3
0
1.6k
「国と音楽」 ~spotifyrを用いて~ #muana
bob3bob3
2
460
パーマーステーションのペンギンたち#3 探索的データ分析(EDA)編
bob3bob3
1
580
Other Decks in Technology
See All in Technology
AIを使って小説を書こう!【2024/10/25講演資料】
kamomeashizawa
0
160
顧客が本当に必要だったもの - パフォーマンス改善編 / Make what is needed
soudai
14
2.3k
Mackerelが取り組むオブザーバビリティ - Mackerel Tech Day
mackerelio
0
300
Tokyo dbt Meetup #10 dbt Cloudユーザー会 & パネルディスカッション
dbttokyo
1
160
巨大企業でDX革新を起こすということ BTCONJP 2024
yamaken66
1
550
「最高のチューニング」をしないために / hack@delta 24.10
fujiwara3
7
1.2k
サーバーサイドのデータプレーンプログラミング 〜 NVIDIA Blue Field / DOCA 〜
ebiken
PRO
1
220
開発健全性の可視化と開発者体験の改善 ~ Compassでエンジニアに活力と生産性を ~
atlassianjapan
0
170
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
110
Capybara+生成AIでどこまで本当に自然言語のテストを書けるか?
yusukeiwaki
6
720
カメラ単体で物体の3次元 座標を扱う方法
kenmatsu4
1
210
WHOLENESS, REPAIRING, AND TO HAVE FUN: 全体性、修復、そして楽しむこと
snoozer05
PRO
2
2.9k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
RailsConf 2023
tenderlove
29
870
How to train your dragon (web standard)
notwaldorf
88
5.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
A designer walks into a library…
pauljervisheath
202
24k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.7k
KATA
mclloyd
29
13k
Teambox: Starting and Learning
jrom
132
8.7k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.8k
Thoughts on Productivity
jonyablonski
67
4.3k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
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!