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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
株式会社アドバンテッジリスクマネジメント会社紹介資料
arm0020
0
72k
데이터 분석가의 커리어 설계
datarian
0
300
G-gen キャリア
ggen
0
1.1k
スマートキャンプ株式会社 会社紹介資料 / companydeck
smartcamp
1
6.1k
20261022_【DCC】Tokenized-JGB-Onchai- Repo-WG_Interim Report
progmat
0
800
株式会社デライト 会社紹介資料
ikmwatanabe
0
740
Nstock 採用資料 / We are hiring
nstock
30
410k
現場感と大局観 -具体と抽象の両端からチームと事業を動かす-
ymk1102
0
170
THE Impact Report 2026 /THE株式会社 2026年10月公開(訂正版)
yusukiwashita
0
260
AWS BuilderCardsを社内実践して見えたSales職への提案教育/Insights_from_Implementing_AWS_BuilderCards_Internally_Training_for_Sales_Roles_.pdf
masakiokuda
0
220
Daudzdzīvokļu ēku energoefektivitāte Latvijā - 2026. gads
dzivosiltak
PRO
0
150
エムスリーキャリア エンジニア採用資料 / M3C Engineer Guide
m3c
2
120k
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
350
Ethics towards AI in product and experience design
skipperchong
2
470
The Curious Case for Waylosing
cassininazir
1
610
Fireside Chat
paigeccino
43
4.1k
Building the Perfect Custom Keyboard
takai
2
960
A Soul's Torment
seathinner
9
3.9k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
The Cult of Friendly URLs
andyhume
79
7.1k