plot.tran: Plot Transitions

Description Usage Arguments Details Author(s) See Also Examples

Description

Plot transistions between all points, which there is an lwd

Usage

1
plot.tran(locs, lwd = 1, col = "black", bend = 0.05, head = 0.1)

Arguments

locs

A three column matrix or dataframe. column one is the station names in the same order as rownames in Trans. The second column is the y coordinates, and column three is the x coordinates.

lwd

the line width of each transistion. Should be length nrow(locs)^2

col

color of the transitions

bend

the amount to bend the transition lines. The porportion of distance between each node that the line will be maximumly away from the straight path. If 0 then lines are not bent

head

the length in inches of the head of the arrows, if 0 then lines are drawn with no arrow heads

Details

This is used in transBub, however, if you only want to view transistions or edges that this function can be used. However, you must supply the list of linewidths yourself. To determine the order examine locsloc or can calculate the number of counts using totcount command

Author(s)

Connor F. White

See Also

transBub, transmat, totcount, locsloc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
locs<-circLocs(4)
locs2<-locsloc(locs)
dat<-sample(c("A","B","C","D"),100,replace=TRUE)
x<-transMat(dat, States=c("A","B","C","D"))
counts<-totcount(x)
lwds<-counts$TransCount
lwds[lwds>0]<-scal(lwds[lwds>0],scal=c(1,5))

plot(locs[locs2[,1],2]~locs[locs2[,2],3],type="n")
plot.tran(locs, lwd=lwds)

ConnorFWhite/AssFunc documentation built on May 20, 2019, 4:07 p.m.