MIA.Edge: Marginal Increment Analysis Plot - Uses only Categorical Edge...

View source: R/MI_functions.R

MIA.EdgeR Documentation

Marginal Increment Analysis Plot - Uses only Categorical Edge Codes

Description

MIA.Edge creates a marginal increment analysis plot.

Usage

MIA.Edge(x, y, x.label = "Month", y.label = "Proportion")

Arguments

x

vector representing the grouping variable for the marginal increment analysis.

y

vector representing the edge type for each value of "x". Must be the same length as "x".

x.label

label for the x-axis

y.label

label for the y-axis

Value

A barchart using the package lattice depicting the proportional edge type distribution by unique "x".

See Also

MIA

Examples

# Example with Sheepshead Data
data(Sheepshead)
Month <- Sheepshead$Month
Edge <- with(Sheepshead, ifelse(MI/Prev.Inc>=0.6667, "Wide", "Narrow"))
MIA.Edge(x = Month, y = Edge)

ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.