plot.ci: Method for plotting pooled simulations by confidence...

Description Usage Arguments Value Author(s)

Description

Plot confidence intervals of simulated quantities of interest, across a range of a variable.

Usage

1
2
3
4
  ## S3 method for class 'ci'
plot(x, qi="ev", var=NULL, ..., main = NULL, sub = NULL, xlab = NULL, 
  ylab = NULL, xlim = NULL, ylim = NULL, legcol="gray20", col=NULL, leg=1, legpos=NULL,
   ci=c(80,95,99.9))

Arguments

x

A ‘sim’ object

qi

a character-string specifying the quantity of interest to plot: "ev" expected values, "pv" predicted values, "fd" first differences

var

The variable to be used on the x-axis

...

Parameters to be passed to the ‘truehist’ function which is implicitly called for numeric simulations

main

A character-string, specifying the main title of the plot

sub

A character-string, specifying the sub-title of the plot

xlab

A character-string, specifying the label for the x-axis

ylab

A character-string, specifying the label for the y-axis

xlim

A vector of length 2, specifying the left-most and right-most values for the plot

ylim

A vector of length 2, specifying the bottom-most and top-most values for the plot

legcol

“legend color”, an valid color used for plotting the line colors in the legend

col

a valid vector of colors of at least length 3 to use to color the confidence intervals

leg

“legend position”, an integer from 1 to 4, specifying the position of the legend. 1 to 4 correspond to “SE”, “SW”, “NW”, and “NE” respectively

legpos

“legend type”, exact coordinates and sizes for legend. Overrides argment “leg.type”

ci

A vector of length up to 3, specifying the three confidence interval levels to plot on the graph (where confidence is expressed on the scale 0-100).

Value

the current graphical parameters. This is subject to change in future implementations of Zelig

Author(s)

James Honaker, adapted by Matt Owen mowen@iq.harvard.edu


IQSS/Zelig4 documentation built on May 9, 2019, 9:13 a.m.