Gary King Homepage Previous: Usage Up: Function plot.whatif() Next: Value

Inputs

x
An object of class ``whatif'', the output of the function whatif().
type
A character string; the type of plot of the cumulative frequencies of the distances to be produced, including: "f" for cumulative frequencies only; "l" for LOWESS smoothing of cumulative frequencies only; "b" for both cumulative frequencies and LOWESS smoothing. LOWESS scatterplot smoothing is plotted in blue and the unsmoothed frequencies in black. Default is "f".
numcf
A numeric vector; the specific counterfactuals to be plotted. Each element represents a counterfactual, specifically its row number from the matrix or data frame of counterfactuals. By default, all counterfactuals are plotted. Default is NULL.
eps
A Boolean; should an encapsulated postscript file be generated? Setting the argument equal to TRUE generates an .eps file, which is saved to your working directory with file name of form `graph_`type'_`numcf'.eps', where `type' and `numcf' are the values of the respective arguments. Specifically, `numcf' takes the value of the first element of the argument numcf unless all counterfactuals were plotted, in which case all appears in the place of `numcf'. Default is FALSE, which instead prints the graph to the screen.



Gary King 2010-08-12