Description Usage Arguments Value Author(s) See Also Examples
View source: R/denpro.R View source: R/plottree.R
Plots a tree plot of a level set tree, of a shape tree, or of a tail tree to the graphics window.
1 2 3 4 5 6 7 8 9 10 11 | plottree(lst,
plot=T, data=F, crit=NULL, orderrule="distcenter",
modelabel=TRUE, ptext=0, leimat=NULL, symbo=NULL,
info=NULL, infolift=0, infopos=0, infochar=NULL,
xmarginleft=0, xmarginright=0, ymargin=0,
xlim=NULL, ylim=NULL, col="black", col.axis="black",
linecol=rep("black",length(lst$parent)),
pch=21, dimen=NULL, yaxt="s", axes=T,
cex=NULL, nodemag=NULL, linemag=1,
cex.axis = 1, ylab = "", cex.lab = 1, colo = FALSE, paletti = NULL,
lowest = "dens")
|
lst |
level set tree; list of vectors. The list contains at least vectors "level", "volume", and "parent". For example, functions "leafsfirst", "profkern" and "profhist" give a level set tree as an output. |
plot |
T or F; TRUE if we make a plot, otherwise FALSE. |
data |
T or F; TRUE if we want output to contain some information, for example an ordering for siblings. This option is needed only by other plotting functions of the package, it is not needed by the end user. |
crit |
d-vector of real numbers; gives a way to control ordering of siblings. The leftmost sibling is the one whose barycenter is furthest away from vector "crit", in the Euclidean distance. |
orderrule |
lower level paremeter |
modelabel |
T or F; TRUE if the modes will be labelled. The default is to use labels M1, M2,... |
ptext |
non-negative real number; amount by which the mode labels will be lifted. |
leimat |
vector of characters; length of the vector should be equal to the number of modes of the estimate. This option is for the case we do not want the ordering of the labels to be done automatically. |
symbo |
character; for example "L". The default value for the automatic labelling of the modes is to use M1, M2,... With "symbo" we may switch to L1, L2,..., for example. |
info |
vector of numbers or characters, whose length is equal to the number of nodes of the level set tree. The elements of "info" will be placed on the right side of the nodes. For example "info" may be generated by "excmas" or we may define "info" to contain the frequencies of the nodes. (Frequencies may be obtained directly from the function "profhist".) |
infolift |
real number; controls the vertical positioning of the elements of "info". |
infopos |
real number; controls the horizontal positioning of the elements of "info". Negative "infopos" will move elements of "info" to the right hand side. |
infochar |
vector of characters whose length is equal to the number of nodes of the level set tree; we may annotate nodes with some infromation |
xmarginleft |
nonnegative real number; adds more margin on the left hand side. The box around the plot will be moved to the left with the amount "xmarginleft". |
xmarginright |
nonnegative real number; adds more margin on the right hand side. The box around the plot will be moved to the right with the amount "xmarginright". |
ymargin |
nonnegative real number; adds more margin on the top of the plot. The box around the plot will be moved up with the amount "ymargin". |
xlim |
vector of 2 real numbers; gives the limits for the scale of x-axis. |
ylim |
vector of 2 real numbers; gives the limits for the scale of y-axis. |
col |
colour for the nodes; for example "black" or "blue". |
col.axis |
colour for the x and y-axis; for example "black" or "blue". |
linecol |
colour for the lines joining nodes; for example "black" or "blue". |
pch |
symbol for the nodes of the tree; integer 19-25; see help(points) for the definitions |
dimen |
positive integer; number of dimensions of the estimate. If "dimen" is not NULL, then we plot without using the usual ordering of the siblings. This option is used when we do not have barycenters available. |
yaxt |
axis type, see "par" |
axes |
T or F |
cex |
magnification factor for the symbols; see "par" |
nodemag |
magnification factor for the points |
linemag |
magnification factor for the lines joining the points |
cex.axis |
magnification factor for the axis annotation; see "par" |
ylab |
character; y-axis label (name of the y-variable); for example in a tree plot of a level set tree this could be "level" |
cex.lab |
magnification factor for the axis labels (names of x and y); see "par" |
colo |
TRUE or FALSE; if TRUE, nodes and lines joining the nodes will be colored |
paletti |
a vector of names of colors; these colors will be used to color the nodes and the lines joining the nodes |
lowest |
character string; if lowest="dens", then y-axis starts at 0 |
By default a plot is made on the graphics window.
Jussi Klemela
plotvolu
,
plotbary
,
leafsfirst
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.