legend.bub: Add Legend

Description Usage Arguments Author(s) See Also Examples

Description

To add a legend to a transbub plot, with the bubbles and the counts

Usage

1
legend.bub(Trans, nbub = 3, xper = c(0.6, 0.95), yper = c(0.5, 0.95), sqrt = FALSE, lims.b = NULL, bubsize = c(1, 5), textl = NULL, yspacing = NULL, xspacing = NULL, boarder = 1, rounddig = 2, pch = 21, pt.bg = rgb(0, 0, 1, 0.5), pt.col = "black", bg = "white")

Arguments

Trans

Transistion matrix

nbub

number of bubles to inclued

xper

a vector of length two representing the percent of the x axis to start and the percent of the plot to end the the plotting

yper

a vector of length two representing the percent of the y axis to start and the percent of the plot to end the the plotting

sqrt

Whether the count sizes should be square root transformed

lims.b

the limits to be used when scaling the bubble sizes

bubsize

The maximum and minimum bubble sizes

textl

The number of text characters to in the label

yspacing

list of the spacing within the legend, should be length nbub + 1

xspacing

list of the x spacing of the legend, should be length nbub + 1

boarder

the spacing to put around the boarders

rounddig

digits to round the number to

pch

the character type for the bubles

pt.bg

color of the background for the point

pt.col

color of the point

bg

the background color of the legend

Author(s)

Connor F. White

See Also

transBub

Examples

1
2
3
4
5
rec<-sample(c("A","B","C"),size=200,replace=TRUE)
trans<-transMat(rec)

transBub(trans)
legend.bub(trans,nbub=3)

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