Description Usage Arguments Details Author(s) See Also Examples
plot a transition matrix, from transmat. Locations can be supplied for the nodes, however, if not then the nodes are aligned in a circle.
1 |
Trans |
a n x n matrix with count data representing the number of transistions from each state to each other states |
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. if not provided data locations will be provided in a sphere |
bubsize |
vector of length two representing the cex parameter of the minimum and maximum node locations |
lims.b |
if supplied a vector of length two representing the count data representing the minimum and maximum bub sizes, else defaults to minimum and maximum observed in the data |
bub.pch |
Character type of the nodes |
bub.col |
color of the nodes |
bub.bg |
color of the nodes background |
bubsqrt |
should the count data for the nodes be square root transformed |
linesize |
minimum and maximum line widths |
lims.l |
if supplied a vector of length two representing the count data representing the minimum and maximum line widths, else defaults to minimum and maximum observed in the data |
line.col |
color of the lines |
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 |
linesqrt |
should the transistion counts be square root transformed |
add |
should theis plot be added onto the current plotting surface. If set to true, recommended that you have supplied locs |
xlim |
vector of length two representing the minimum and maximum x coordinates of the plot |
ylim |
vector of length two representing the minimum and maximum y coordinates of the plot |
Can be plotted independantly. However, when locs are supplied can be added onto a map with add = true. Designed for representing these fish movements from passive acoustic telemetry
Connor F. White
transMat, legend.bub, legend.line
1 2 3 4 5 6 7 8 9 10 11 | dat<-sample(c("A","B","C","D"),100,replace=TRUE)
x<-transMat(dat, States=c("A","B","C","D"))
transBub(x)
#If we want to supply locations for each node
locs<-data.frame(State=c("A","B","C","D"),y=rep(0,4),x=c(1:4))
transBub(x,locs=locs)
#If we want to supply the minimum and maximum values of the nodes
transBub(x,lims.b=c(0,40),lims.l=c(0,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.