Analysis in R: Can also be used for process control. Creation of Gantt charts ‘PlotPrjNetworks’ package.

RAnalytics
スポンサーリンク

Creating Gantt charts is surprisingly difficult, but the ”PlotPrjNetworks” package makes it easy. Complex Gantt charts can be created. Please give it a try.

Package version is 1.0.0. Checked with R version 4.2.2.

スポンサーリンク

Install Package

Run the following command.

#Install Package
install.packages("PlotPrjNetworks")

Example

See the command and package help for details.

#Loading the library

library("PlotPrjNetworks")

#Create project data
#Process name, start and end date data required
TasksData <- data.frame(task = paste0("Test", 1:10),
                        start = c("2015-07-05", "2015-08-05", "2015-10-05",
                                  "2016-01-05", "2016-03-18", "2016-04-05",
                                  "2016-07-05", "2016-09-05", "2017-01-05",
                                  "2017-03-18"),
                        end = c("2015-08-01", "2015-9-05", "2016-01-05",
                                "2016-03-18", "2016-04-18", "2016-07-05",
                                "2016-9-05", "2017-01-05", "2017-03-18",
                                "2017-04-18"))

#Project management data
#form,to: relationship between processes, type: method of joining lines;
#F: from the "end", S: from the "start", delay: setting of construction time delay
#The upper and lower triangular symbols shown
#for each process indicate the shortest time at
#the top and the delay tolerance at the bottom
InfoData <- data.frame(from = c(1, 2, 3, 4, 5, 6, 7, 8, 9),
                          to = c(3, 3, 4, 5, 7, 8, 8, 9, 10),
                          type = c("FS", "FF", "FS", "FS", "FS", "SS", "FS", "FF", "FS"),
                          delay = c(0, 0, 0, 0, 0, 0, 0, 0, 0))

#Plot
GanttChart(TasksData, InfoData)

Output Example

GanttChart

少しでも、あなたの解析が楽になりますように!!

Amazon audibleの登録の紹介

プライム会員限定で2024年7月22日まで3か月無料体験キャンペーン開催中です。無料体験後は月額1,500円で聞き放題です。なお、聞き放題対象外の本はAudible会員であれば非会員価格の30%引きで購入することが可能です。

Amazon audibleはプロのナレーターが朗読した本をアプリで聞くことができるサービスで、オフライン再生も可能です。通勤や作業のお供にAmazon audibleのご登録はいかがでしょうか。

・AmazonのAudible

https://amzn.to/3L4FI5o

Copied title and URL