draw.vlmc {VLMC} | R Documentation |
Draw a "VLMC" Object (in ASCII) as tree.
Description
Draws a vlmc
object, typically the result of
vlmc(.)
, to the R console,
using one line per node.
Usage
draw(x, ...)
## S3 method for class 'vlmc'
draw(x, kind = 3, flag = TRUE, show.hidden = 0,
cumulative = TRUE, delta = cumulative, debug = FALSE, ...)
Arguments
x |
typically the result of |
kind |
integer code for the “kind of drawing”, in {0,1,2,3}. |
flag |
logical; .. |
integer code; if not | |
cumulative |
logical indicating if the cumulative counts should
be shown for nonterminal nodes; the ‘delta’s can only be computed
from the cumulative counts, i.e., |
delta |
logical indicating if delta,
i.e. |
debug |
logical; if |
... |
(potentially more arguments) |
Details
.............
.............
Note that the counts internally are stored “non-cumulatively”,
i.e., as difference counts which is useful for likelihood (ratio)
computations. In the internal C code, the difference counts are
originally computed by the comp_difference()
function after tree
generation. draw(*, cumulative = TRUE)
internally calls the C
function cumulate()
for the cumulative sums.
Value
nothing is returned.
Author(s)
Martin Maechler
See Also
vlmc
.
Examples
example(vlmc)
draw(vlmc.dt1c01)
draw(vlmc.dt1c01, flag = FALSE)
draw(vlmc.dt1c01, kind = 1)
draw(vlmc.dt1)
draw(vlmc.dt1, show = 3)
draw(vlmc.dt1, cumulative = FALSE)