Learn R Programming

mtsdi (version 0.3.5)

plot.mtsdi: Plot the Imputed Matrix

Description

This function produces a plot with imputed values and the estimated level for each of the columns in the imputed matrix.

Usage

# S3 method for mtsdi
plot(x, vars = "all", overlay = TRUE, level = TRUE, 
	points = FALSE, leg.loc = "topright", horiz = FALSE, at.once = FALSE, ...)

Arguments

x

an object of the class mtsdi

vars

a vector with de variables to plot

overlay

logical. If TRUE, observed values are plot over the imputed ones

level

logical. If TRUE, the level is plot

points

logical. If TRUE, points on the observed and imputed values are plot

leg.loc

a list with x and y coordinates for the legend or a quoted string. Default is "topright". See Details

horiz

logical. If TRUE, the legend will horizontal oriented

at.once

logical. If TRUE, all the variables are plot in separate windows at once

further options for function plot

Details

The leg.loc option may also be specified by setting one of the following quoted strings "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right", or "center". This places the legend on the inside of the plot frame at the given location with the orietation set by horiz. See legend for further details.

See Also

mnimput

Examples

Run this code
# NOT RUN {
data(miss)
f <- ~c31+c32+c33+c34+c35
i <- mnimput(f,miss,eps=1e-3,ts=TRUE, method="spline",sp.control=list(df=c(7,7,7,7,7)))
plot(i)
# }

Run the code above in your browser using DataLab