Description Usage Arguments Author(s) Examples
Plot single imputed time series (as returned by functions
impute_AR1_Gaussian
and impute_AR1_t
),
highlighting the imputed values in a different color.
1 2 3 4 5 6 7 | plot_imputed(
y_imputed,
column = 1,
title = "Imputed time series",
color_imputed = "red",
type = c("ggplot2", "simple")
)
|
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: |
Daniel P. Palomar
1 2 3 4 5 6 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.