Nothing
#' @importFrom ggplot2 autoplot
#' @export
ggplot2::autoplot
#' @export
autoplot.cocoBoot <- function(object, ...){
pl <- ggplot2::ggplot(object$df_plot, ggplot2::aes_string("x", "y")) +
ggplot2::geom_point()+
ggplot2::geom_line()+
ggplot2::geom_ribbon(data=object$df_plot,ggplot2::aes_string(ymin="lower",ymax="upper"),
fill="steelblue", alpha=0.3) +
ggplot2::theme_bw() + ggplot2::xlab("Lags") + ggplot2::ylab("Autocorrelation") +
ggplot2::ggtitle("Bootstrap")
pl
}
#' @export
plot.cocoBoot <- function(x, ...) {
p <- autoplot(
x,
...
)
print(p)
}
#'@export
print.cocoBoot <- function(x, ...) {
print(autoplot(x, ...,))
invisible(x)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.