Learn R Programming

ei (version 1.3-3)

plot.ei: Plotting Ecological Inference Estimates

Description

`plot' method for the class `ei'.

Usage

"plot"(x, ...)

Arguments

x
An ei object from the function ei.
...
A list of options to return in graphs. See values below.

Value

Details

Returns any of a set of possible graphical objects, mirroring those in the examples in King (1997). Graphical option lci is a logical value specifying the use of the Law of Conservation of Ink, where the implicit information in the data is represented through color gradients, i.e. the color of the line is a function of the length of the tomography line. This can be passed as an argument and is used for ``tomogD'' and ``tomog'' plots.

References

Gary King (1997). A Solution to the Ecological Inference Problem. Princeton: Princeton University Press.

Examples

Run this code
data(sample)
formula = t ~ x
dbuf <- ei(formula=formula, total="n",data=sample)
plot(dbuf, "tomog")
plot(dbuf, "tomog", "betab", "betaw", "xtfit")

Run the code above in your browser using DataLab