Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
さまざまなグラフ描画(2) / Various Chart Drawing 2
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kenji Saito
PRO
December 12, 2023
Business
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
さまざまなグラフ描画(2) / Various Chart Drawing 2
早稲田大学大学院経営管理研究科「企業データ分析」2023 冬のオンデマンド教材 第8回で使用したスライドです。
Kenji Saito
PRO
December 12, 2023
Transcript
17 slides
generated by Stable Diffusion XL v1.0 2023 8 (2) (WBS)
2023 8 (2) — 2023-12 – p.1/17
https://speakerdeck.com/ks91/collections/corporate-data-analysis-2023-winter 2023 8 (2) — 2023-12 – p.2/17
( 20 ) 1 • 2 R • 3 •
4 • 5 • 6 ( ) • 7 (1) • 8 (2) • 9 R ( ) (1) 10 R ( ) (2) 11 R ( ) (1) 12 R ( ) (2) 13 GPT-4 14 GPT-4 15 ( ) LaTeX Overleaf 8 (12/21 ) / (2 ) OK / 2023 8 (2) — 2023-12 – p.3/17
y 3D (3 ) 3D 2023 8 (2) — 2023-12
– p.4/17
2 R "yyyy-mm-dd" 1970 1 1 0 ( → :
“Dec 03”) y x 2 cda-demo “ -2.R” Git 1 2023 8 (2) — 2023-12 – p.5/17
y (1/2) (?) “ .txt” 1 1 <- read.table(" .txt",
header=T) x y par(oma=c(0, 0, 0, 2)) # plot(as.Date( 1$ ), 1$ , type="o", lty=1, pch=1, col=4, ylim=c(0, 8), axes=F, xlab=" (2023 )", ylab=" ", main=" 1 ") axis.Date(1, format="%m/%d") # x ( / )(%m = )(%d = ) ‘as.Date(. . .)’ ( plot ) ‘axis.Date(. . .)’ 1 1 = , 2 = , 3 = , 4 = (‘side’ ) ‘format’ (‘as.Date( . . . )’ ) 2023 8 (2) — 2023-12 – p.6/17
y (2/2) y y y axis(2, line=0.5, col=4) # y
par(new=T) plot(as.Date( 1$ ), 1$ , type="o", lty=2, pch=2, col=2, ylim=c(0, 7), axes=F, ann=F) mtext(" ", side=4, line=3) axis(4, line=0.5, lty=2, col=2) # y par(oma=c(0, 0, 0, 0)) # ‘axis(. . .)’ ‘line’ ‘mtext(. . .)’ 2023 8 (2) — 2023-12 – p.7/17
࠶ࡿ1㐌㛫ࡢணᐃ௳ᩘᣊ᮰㛫 ᪥ (2023ᖺ) ணᐃࡢ௳ᩘ 12/03 12/05 12/07 12/09 0 2
4 6 8 ᣊ᮰ࡉࢀࡓ㛫 0 1 2 3 4 5 6 7 2023 8 (2) — 2023-12 – p.8/17
3D 3 3D × ( ) 3 . . .
2023 8 (2) — 2023-12 – p.9/17
3 (1/2) (3D ) install.packages("scatterplot3d") library(scatterplot3d) 2 2 <- read.table("data-interval-100.txt")
1 a ( ) · 2 ( : %) ( ) 3 ( : %) 2023 8 (2) — 2023-12 – p.10/17
3 (2/2) 3D scatterplot3d(x = 2$V1, y = 2$V2, z
= 2$V3, pch=20, highlight.3d = TRUE, type ="h", lwd = 2, angle = 50, xlab=" a ", ylab=" (%)", zlab=" (%)") ‘scatterplot3d(. . .)’ 3D plot x, y, z ‘highlight.3d’ y ‘angle’ x y 2023 8 (2) — 2023-12 – p.11/17
10 20 30 40 50 0 20 40 60 80
100 0 10 20 30 40 50 ࣃ࣓࣮ࣛࢱa ࡢࡁࡉ ࢹ࣮ࢱᦆኻ⋡ (%) ᚓࡽࢀࡓࢹ࣮ࢱࡢ᳨ドྍ⬟ᛶ (%) 2023 8 (2) — 2023-12 – p.12/17
5 1 3D 5 par(mfrow=c(2, 3)) for (x in 1:5)
{ a <- x * 10 plot( 2[ 2$V1==a, 2], 2[ 2$V1==a, 3], type="o", ylim=c(0, 100), xlab=" (%)", ylab=" (%)", main=paste("a=", a)) } par(mfrow=c(1, 1)) ‘mfrow=c(2, 3)’ 2 3 a 10, 20, 30, 40, 50 5 2023 8 (2) — 2023-12 – p.13/17
0 10 20 30 40 0 20 60 100 a=
10 ࢹ࣮ࢱᦆኻ⋡ (%) 0 10 20 30 40 0 20 60 100 a= 20 ࢹ࣮ࢱᦆኻ⋡ (%) ᳨ドྍ⬟ᛶ 0 10 20 30 40 0 20 60 100 a= 30 ࢹ࣮ࢱᦆኻ⋡ (%) ᳨ドྍ⬟ᛶ 0 10 20 30 40 0 20 60 100 a= 40 ࢹ࣮ࢱᦆኻ⋡ (%) 0 10 20 30 40 0 20 60 100 a= 50 ࢹ࣮ࢱᦆኻ⋡ (%) ᳨ドྍ⬟ᛶ 2023 8 (2) — 2023-12 – p.14/17
. . . 1 for (x in 1:5) { a
<- x * 10 plot( 2[ 2$V1==a, 2], 2[ 2$V1==a, 3], type="o", lty=x, pch=x, col=x, ylim=c(0, 100), xlim=c(0, 50), axes=F, ann=F) par(new=T) } axis(1) axis(2) mtext(" (%)", side=1, line=2) mtext(" (%)", side=2, line=2) legend("bottomleft", legend=c("a=50", "a=40", "a=30", "a=20", "a=10"), lty=5:1, pch=5:1, col=5:1) box() # 2023 8 (2) — 2023-12 – p.15/17
0 10 20 30 40 50 0 20 40 60
80 100 ࢹ࣮ࢱᦆኻ⋡ (%) ᳨ドྍ⬟ᛶ (%) a=50 a=40 a=30 a=20 a=10 2023 8 (2) — 2023-12 – p.16/17
2023 8 (2) — 2023-12 – p.17/17
More Decks by Kenji Saito
See All by Kenji Saito
NPO とは何か(を考えるワールドカフェ) / What Is an NPO? (A World Café Discussion)
ks91
PRO
0
15
講師自己紹介 / Lecturer's Self-Introduction
ks91
PRO
0
15
講師研究紹介 / Faculty Research Profile
ks91
PRO
0
10
FinTech 11-12 : Cyber-Physical Society and Future of Finance
ks91
PRO
0
61
サイバーフィジカル・セキュリティーと人間の安全保障 / Cyber-Physical Security and Human Security
ks91
PRO
0
32
ゼミ紹介 デジタルトランスフォーメーションと経済・金融の未来 / Zemi Introduction : Digital Transformation and the Future of the Economy and Finance
ks91
PRO
0
37
FinTech 9-10 : Smart Contracts and Decentralized Finance
ks91
PRO
0
81
FinTech 7-8 : Blockchain
ks91
PRO
0
84
Fall 2026: A Guide & Workshop on Using AI for Academic Paper Writing
ks91
PRO
1
130
Other Decks in Business
See All in Business
2026 Fuji Oil Outside Directors’ Roundtable (English version)
tsogo817421
2
340
【DearOne】Dear Newest Member
hrm
3
21k
GMO Flatt Security 会社紹介資料
flatt_security
0
44k
A Management Theory for the Age of AI - What Could Your Organisation Become?
stuartwintertear
0
120
Give people back the work they were hired to do
ediel
0
210
株式会社マクロセンド-採用ピッチ資料 / macrosend-guide
macrosend
1
11k
KGモーターズ会社紹介資料_2026.11
kgmotors
0
33k
正しさよりも、受け取ってもらえる言葉を!非暴力コミュニケーションのすすめ
kawanotron
0
230
ファブリカホールディングス_2027年3月期 第2四半期説明資料
fabrica_com
1
6.4k
GMOフィナンシャルホールディングス_会社紹介資料202611.pdf
gmofh_hr_team
0
11k
4 operating model upgrades for success with AI - Matthew Skelton - Enterprise AI Summit - Bletchley Park, UK
matthewskelton
PRO
0
640
malna-recruiting-pitch
malna
1
30k
Featured
See All Featured
Fireside Chat
paigeccino
43
4.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
WCS-LA-2024
lcolladotor
0
1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
300
Typedesign – Prime Four
hannesfritz
42
3.2k
Optimizing for Happiness
mojombo
378
71k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
The Cult of Friendly URLs
andyhume
79
7.1k
Building Adaptive Systems
keathley
44
3.3k