dag.plot {ProjectManagement} | R Documentation |
DAG plot
Description
This function plots a directed acyclic graph (DAG).
Usage
dag.plot(
prec1and2 = matrix(0),
prec3and4 = matrix(0),
critical.activities = NULL
)
Arguments
prec1and2 |
A matrix indicating the order of precedence type 1 and 2 between the activities (Default=matrix(0)). If value |
prec3and4 |
A matrix indicating the order of precedence type 3 and 4 between the activities (Default=matrix(0)). If value |
critical.activities |
A vector indicating the critical activities to represent them in a different color (Default=NULL) . |
Value
A plot.
Examples
prec1and2<-matrix(c(0,1,0,2,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0),nrow=5,ncol=5,byrow=TRUE)
prec3and4<-matrix(0,nrow=5,ncol=5)
prec3and4[3,1]<-3
dag.plot(prec1and2,prec3and4)