plot_imputed {imputeFin} | R Documentation |
Plot imputed time series.
Description
Plot single imputed time series (as returned by functions
impute_AR1_Gaussian
and impute_AR1_t
),
highlighting the imputed values in a different color.
Usage
plot_imputed(
y_imputed,
column = 1,
title = "Imputed time series",
color_imputed = "red",
type = c("ggplot2", "simple")
)
Arguments
y_imputed |
Imputed time series (can be any object coercible to a numeric vector
or a numeric matrix). If it has the attribute |
column |
Positive integer indicating the column index to be plotted (only valid if
the argument |
title |
Title of the plot (default is |
color_imputed |
Color for the imputed values (default is |
type |
Type of plot. Valid options: |
Author(s)
Daniel P. Palomar
Examples
library(imputeFin)
data(ts_AR1_t)
y_missing <- ts_AR1_t$y_missing
y_imputed <- impute_AR1_t(y_missing)
plot_imputed(y_missing, title = "Original time series with missing values")
plot_imputed(y_imputed)