Learn R Programming

linktree (version 0.1.0)

plot.linktree: Plot linktree objects

Description

Plots error bars for objects of class linktree (with subclasses gamma, delta, or pi). The method displays point estimates with confidence intervals for each group. A horizontal dotted line is added at the neutral value: y = 1 for subclass gamma and y = 0 for subclass delta.

Usage

# S3 method for linktree
plot(x, ...)

Value

No return value, called for side effects (produces a plot).

Arguments

x

An object of class linktree (with subclasses gamma, delta, or pi).

...

Additional arguments passed to the base plot function.

Examples

Run this code
from <- c("A", "A", NA, "C", "C", "C")
to <- c("A", "B", "B", "C", "C", "C")
f <- c(A = 0.3, B = 0.2, C = 0.5)
plot(get_delta(from, to, f))
plot(get_gamma(from, to, f))

Run the code above in your browser using DataLab