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
棒グラフ、帯グラフ(、円グラフ) / Bar Charts (and Pie Chart)
Search
Kenji Saito
PRO
December 10, 2023
Business
270
0
Share
棒グラフ、帯グラフ(、円グラフ) / Bar Charts (and Pie Chart)
早稲田大学大学院経営管理研究科「企業データ分析」2023 冬のオンデマンド教材 第6回で使用したスライドです。
Kenji Saito
PRO
December 10, 2023
More Decks by Kenji Saito
See All by Kenji Saito
インターネットの技術 / Internet technology
ks91
PRO
0
19
大規模言語モデルの原理と使いこなしの原則 / Principles of Large Language Models and How to Use Them Effectively
ks91
PRO
0
8
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
87
研究って何だっけ / What is research anyway?
ks91
PRO
0
15
ブロックチェーンと分散ファイナンス概論 / Introduction to Blockchain and Decentralized Finance
ks91
PRO
0
10
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
170
本授業におけるエージェント・ハブの使い方 / How to Use the Agent Hub in This Course
ks91
PRO
0
67
LLM とプロンプトエンジニアリング/チューターを定義する / LLMs and Prompt Engineering, and Defining Tutors
ks91
PRO
0
360
Running Coding Agents (Windows WSL Edition)
ks91
PRO
0
44
Other Decks in Business
See All in Business
メドピアのValues2025 -もう一度スタートアップへ-
medpeer_recruit
0
860
株式会社ハイウェイ_採用候補者様向け会社紹介資料
recruit_hiway
0
180
LW_brochure_business
lincwellhr
1
80k
FERMENSTATION Impact report
fermenstation
0
4.2k
SimpleForm 会社紹介資料
simpleform
2
52k
株式会社ハイパー 会社紹介資料
hypermarketingteam
0
9.4k
【テックファームホールディングス】中途採用向け会社説明資料
techfirm
0
620
爆速で組織になじみ “Work is Fun” を体現するIVRyのオンボーディング
itochan
1
280
深掘り問いカードを使って問いの手札を増やそう!
kawanotron
0
480
コーポレートストーリー(新規投資家様向け会社説明資料)
gatechnologies
2
18k
三井物産グループのデジタル証券~文京区・世田谷区レジデンス~徹底解説セミナー
c0rp_mdm
PRO
0
1.1k
ドクターベネフィットG紹介資料‗エムスリー / Introduction of e-Book Unit Doctor Benefit Group of M3inc
m3
0
190
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
How GitHub (no longer) Works
holman
316
150k
Leo the Paperboy
mayatellez
7
1.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
160
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
240
Become a Pro
speakerdeck
PRO
31
5.9k
Believing is Seeing
oripsolob
1
110
Side Projects
sachag
455
43k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Amusing Abliteration
ianozsvald
1
150
The Curious Case for Waylosing
cassininazir
0
290
Transcript
generated by Stable Diffusion XL v1.0 2023 6 ( )
(WBS) 2023 6 ( ) — 2023-12 – p.1/23
https://speakerdeck.com/ks91/collections/corporate-data-analysis-2023-winter 2023 6 ( ) — 2023-12 – p.2/23
( 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 6 ( ) — 2023-12 – p.3/23
( ) ( ) 2023 6 ( ) — 2023-12
– p.4/23
(bar chart) y ( ) cda-demo “ .R” Git 1
2023 6 ( ) — 2023-12 – p.5/23
“ .txt” 1 1 <- read.table(" .txt", header=T) 10 barplot(
1$ [1:10], names.arg=c(1:10), xlab=" ", ylab=" ", main=" 1 10 ") ‘barplot( . . . )’ : 2023 6 ( ) — 2023-12 – p.6/23
1 2 3 4 5 6 7 8 9 10
ฟᖍ␒ྕ1ࠥ10ࡢⱥㄒࡢヨ㦂⤖ᯝ ฟᖍ␒ྕ ᚓⅬ 0 20 40 60 80 2023 6 ( ) — 2023-12 – p.7/23
( 10 ) 1 2 ## t(table) table ## (matrix)
2 <- t( data.frame( = 1$ [1:10], = 1$ [1:10])) (‘beside=T’) barplot( , beside=T, names.arg=c(1:10), legend.text=T, ylim=c(0, 100), xlab=" ", ylab=" ", main=" 1 10 ") : 2023 6 ( ) — 2023-12 – p.8/23
1 2 3 4 5 6 7 8 9 10
ⱥㄒ ᩘᏛ ฟᖍ␒ྕ1ࠥ10ࡢⱥㄒ࣭ᩘᏛࡢヨ㦂⤖ᯝ ฟᖍ␒ྕ ᚓⅬ 0 20 40 60 80 100 2023 6 ( ) — 2023-12 – p.9/23
100% barplot 2023 6 ( ) — 2023-12 – p.10/23
A∼D ( 100%) X Y data1 <- c( "A "=51,
"B "=21, "C "=20, "D "=8) data2 <- c( "A "=33, "B "=35, "C "=20, "D "=12) data <- matrix(c(data1, data2), length(data1), 2) # 4 2 colnames(data) <- c("X ", "Y ") # 2023 6 ( ) — 2023-12 – p.11/23
barplot(data, horiz=T, col=cm.colors(4), xlab=" (%)", legend.text=names(data1), main=" ") ‘horiz’ (
F (False)) ‘col’ ‘cm.colors(4)’ cm ( ) 4 ‘legend.text=names(data1)’ data1 2023 6 ( ) — 2023-12 – p.12/23
Xᆅᇦ Yᆅᇦ A♫〇 B♫〇 C♫〇 D♫〇 ᆅᇦูࢩ࢙ ࢩ࢙ (%) 0
20 40 60 80 100 2023 6 ( ) — 2023-12 – p.13/23
( ) barplot(data, col=cm.colors(4), ylab=" (%)", legend.text=names(data1), main=" ") ‘horiz’
R ggplot2 2023 6 ( ) — 2023-12 – p.14/23
Xᆅᇦ Yᆅᇦ D♫〇 C♫〇 B♫〇 A♫〇 ᆅᇦูࢩ࢙ ࢩ࢙ (%) 0
20 40 60 80 100 2023 6 ( ) — 2023-12 – p.15/23
barplot(data, beside=T, col=cm.colors(4), ylab=" (%)", legend.text=names(data1), main=" ") ‘beside=T’ 2023
6 ( ) — 2023-12 – p.16/23
Xᆅᇦ Yᆅᇦ A♫〇 B♫〇 C♫〇 D♫〇 ᆅᇦูࢩ࢙ ࢩ࢙ (%) 0
10 20 30 40 50 2023 6 ( ) — 2023-12 – p.17/23
## ## col ## density density <- c(50, 25, 13,
7) barplot(data, beside=T, density=density, ylab=" (%)", legend.text=names(data1), main=" ") ‘density’ 2023 6 ( ) — 2023-12 – p.18/23
Xᆅᇦ Yᆅᇦ A♫〇 B♫〇 C♫〇 D♫〇 ᆅᇦูࢩ࢙ ࢩ࢙ (%) 0
10 20 30 40 50 2023 6 ( ) — 2023-12 – p.19/23
2023 6 ( ) — 2023-12 – p.20/23
pie(data1, col=cm.colors(4), main="X ") pie(data2, col=cm.colors(4), main="Y ") ‘pie( .
. . )’ 2023 6 ( ) — 2023-12 – p.21/23
A♫〇 B♫〇 C♫〇 D♫〇 Xᆅᇦ࡛ࡢࢩ࢙ A♫〇 B♫〇 C♫〇 D♫〇 Yᆅᇦ࡛ࡢࢩ࢙
X B C Y A B D % p.15 p.17 2023 6 ( ) — 2023-12 – p.22/23
2023 6 ( ) — 2023-12 – p.23/23