diagram {CARMS}R Documentation

Deliver a Markov diagram display of a carms object.

Description

This function is simply an alias to diagram.carms since diagram is not avaliable as an S3 method.

Usage

	diagram(x, text.size=0.7, rate.text.y.shift=0.7,shadow=FALSE )
	

Arguments

x

A "carms" object as initialized by carms.make and modified by previous carms.state and/or carms.base and carms.arrow calls

text.size

A relative value controlling the size of text displayed on the diagram.

rate.text.y.shift

A relative value controlling the separation of arrow label text from the arrow itself.

shadow

A logical determining whether each state on the diagram is depicted with a shadow.

Value

This function returns no value. The image on the generated graphics device is typically used for progressive editing of state size, h2w, and position arguments as well as arrow arc, and arrow.position arguments.

References

Jan Pukite and Paul Pukite (1998), "Modeling for Reliability Analysis", IEEE Press, New York

William J. Stewart (1994), "Introduction to the numerical solution of Markov chains", Princeton University Press, Princeton

Examples

	SiSimpl<-carms.make(title="Parallel            Identical components", diagram_grid=c(5,8))
	SiSimpl<-carms.state(SiSimpl, prob=1, name="P1", size=7, h2w=14/20, position=c(2,3) )
	SiSimpl<-carms.state(SiSimpl, prob=0, name="P2", size=7, h2w=14/20, position=c(6,3) )	
	SiSimpl<-carms.base(SiSimpl, 1, time_units="hours",  description="Failure rate")
	SiSimpl<-carms.arrow(SiSimpl, from=1, to=2, rate="B1",label="B1")
	
	diagram(SiSimpl)
	

[Package CARMS version 1.0.1 Index]