From 3f54da6dcb08ff959ad676fe1789a59c59ea4ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dainius=20Masili=C5=ABnas?= Date: Fri, 1 May 2020 14:24:23 +0200 Subject: [PATCH 1/3] Create a stub function for bfast0n --- R/bfast0n.R | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 R/bfast0n.R diff --git a/R/bfast0n.R b/R/bfast0n.R new file mode 100644 index 0000000..ee8c3ea --- /dev/null +++ b/R/bfast0n.R @@ -0,0 +1,30 @@ +# +# This file is part of BFAST. +# +# BFAST is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# BFAST is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with BFAST. If not, see . + +#' Detect multiple breaks in a time series +#' +#' A combination of \code{\link{bfastpp}} and \code{\link[strucchange]{breakpoints}} +#' to do light-weight detection of multiple breaks in a time series +#' while also being able to deal with NA values by excluding them +#' via \code{bfastpp}. +#' +#' @export bfast0n + +bfast0n <- function() +{ + data_pp <- bfastpp() + strucchange::breakpoints(data_pp) +} From d2ec49a5d47d09bc5c6ff034903b8557f7b05c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dainius=20Masili=C5=ABnas?= Date: Fri, 1 May 2020 14:51:42 +0200 Subject: [PATCH 2/3] Expand the bast0n function to include all parameters --- R/bfast0n.R | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/R/bfast0n.R b/R/bfast0n.R index ee8c3ea..1e8dc48 100644 --- a/R/bfast0n.R +++ b/R/bfast0n.R @@ -21,10 +21,19 @@ #' while also being able to deal with NA values by excluding them #' via \code{bfastpp}. #' +#' @inheritParams bfastpp +#' @inheritParams strucchange::breakpoints +#' #' @export bfast0n -bfast0n <- function() +bfast0n <- function(data, order = 3, + lag = NULL, slag = NULL, na.action = na.omit, + stl = c("none", "trend", "seasonal", "both"), + decomp=c("stlplus", "stl"), sbins=1), ...) { - data_pp <- bfastpp() - strucchange::breakpoints(data_pp) + data_pp <- bfastpp(data, order = 3, + lag = NULL, slag = NULL, na.action = na.omit, + stl = c("none", "trend", "seasonal", "both"), + decomp=c("stlplus", "stl"), sbins=1)) + return(strucchange::breakpoints(data = data_pp, ...)) } From c880e6cc4fda4b4e317f1f5ccbc20b43822e12ea Mon Sep 17 00:00:00 2001 From: GreatEmerald Date: Wed, 13 May 2020 12:50:51 +0200 Subject: [PATCH 3/3] Fix syntax error in bfast0n and recreate the documentation --- DESCRIPTION | 2 +- NAMESPACE | 1 + R/bfast0n.R | 10 +++-- examples/bfast0n.r | 13 ++++++ man/bfast-package.Rd | 10 ++--- man/bfast.Rd | 29 ++++++++---- man/bfast01.Rd | 32 ++++++++++---- man/bfast01classify.Rd | 14 +++--- man/bfast0n.Rd | 75 ++++++++++++++++++++++++++++++++ man/bfastmonitor.Rd | 33 ++++++++++---- man/bfastpp.Rd | 40 ++++++++++------- man/bfastts.Rd | 7 ++- man/create16dayts.Rd | 7 ++- man/dates.Rd | 1 - man/dot-bfast_cpp_closestfrom.Rd | 21 +++++++++ man/harvest.Rd | 1 - man/modisraster.Rd | 1 - man/ndvi.Rd | 1 - man/plot.bfast.Rd | 15 ++++--- man/setoptions.Rd | 5 +-- man/simts.Rd | 1 - man/som.Rd | 1 - 22 files changed, 242 insertions(+), 78 deletions(-) create mode 100644 examples/bfast0n.r create mode 100644 man/bfast0n.Rd create mode 100644 man/dot-bfast_cpp_closestfrom.Rd diff --git a/DESCRIPTION b/DESCRIPTION index b471d6f..d74d455 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -43,4 +43,4 @@ URL: http://bfast.R-Forge.R-project.org/ LazyLoad: yes LazyData: yes LinkingTo: Rcpp -RoxygenNote: 5.0.1 +RoxygenNote: 7.1.0 diff --git a/NAMESPACE b/NAMESPACE index 5d6e117..b97a00b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -22,6 +22,7 @@ S3method(residuals,bfast01) export(bfast) export(bfast01) export(bfast01classify) +export(bfast0n) export(bfastmonitor) export(bfastpp) export(bfastts) diff --git a/R/bfast0n.R b/R/bfast0n.R index 1e8dc48..a9dd7e0 100644 --- a/R/bfast0n.R +++ b/R/bfast0n.R @@ -21,19 +21,21 @@ #' while also being able to deal with NA values by excluding them #' via \code{bfastpp}. #' +#' @param ... Additional arguments to \code{\link[strucchange]{breakpoints}}. #' @inheritParams bfastpp #' @inheritParams strucchange::breakpoints +#' @example examples/bfast0n.r #' #' @export bfast0n -bfast0n <- function(data, order = 3, +bfast0n <- function(data, formula=response ~ trend + harmon, order = 3, lag = NULL, slag = NULL, na.action = na.omit, stl = c("none", "trend", "seasonal", "both"), - decomp=c("stlplus", "stl"), sbins=1), ...) + decomp=c("stlplus", "stl"), sbins=1, ...) { data_pp <- bfastpp(data, order = 3, lag = NULL, slag = NULL, na.action = na.omit, stl = c("none", "trend", "seasonal", "both"), - decomp=c("stlplus", "stl"), sbins=1)) - return(strucchange::breakpoints(data = data_pp, ...)) + decomp=c("stlplus", "stl"), sbins=1) + return(strucchange::breakpoints(formula=formula, data = data_pp, ...)) } diff --git a/examples/bfast0n.r b/examples/bfast0n.r new file mode 100644 index 0000000..1e9f86f --- /dev/null +++ b/examples/bfast0n.r @@ -0,0 +1,13 @@ +plot(simts) # stl object containing simulated NDVI time series +datats <- ts(rowSums(simts$time.series)) +# sum of all the components (season,abrupt,remainder) +tsp(datats) <- tsp(simts$time.series) # assign correct time series attributes +plot(datats) + +# Detect breaks +bp = bfast0n(datats) + +# Default method of estimating breakpoints +bp[["breakpoints"]] +# Custom method +strucchange::breakpoints(bp, breaks=2) diff --git a/man/bfast-package.Rd b/man/bfast-package.Rd index 9c74035..d449dfd 100644 --- a/man/bfast-package.Rd +++ b/man/bfast-package.Rd @@ -44,10 +44,7 @@ possible. This can avoid expensive repeated calls of \code{model.matrix} and Setting this option to TRUE requires according functions in the \code{strucchange} package. } } -\author{ -Jan Verbesselt [aut, cre], Achim Zeileis [aut], Rob Hyndman [ctb], -Rogier De Jong [ctb] -} + \references{ Verbesselt J, Zeileis A, Herold M (2012). Near real-time disturbance detection using satellite image time series. \emph{Remote @@ -64,5 +61,8 @@ Detection while Accounting for Abrupt and Gradual Trends in Satellite Image Time Series. \emph{Remote Sensing of Environment}, \bold{114}(12), 2970--2980. \url{http://dx.doi.org/10.1016/j.rse.2010.08.003} } +\author{ +Jan Verbesselt [aut, cre], Achim Zeileis [aut], Rob Hyndman [ctb], +Rogier De Jong [ctb] +} \keyword{ts} - diff --git a/man/bfast.Rd b/man/bfast.Rd index a6f9b0b..dca5003 100644 --- a/man/bfast.Rd +++ b/man/bfast.Rd @@ -5,9 +5,19 @@ \title{Break Detection in the Seasonal and Trend Component of a Univariate Time Series} \usage{ -bfast(Yt, h = 0.15, season = c("dummy", "harmonic", "none"), - max.iter = 10, breaks = NULL, hpc = "none", level = 0.05, - reg = "lm", type = "OLS-MOSUM", ...) +bfast( + Yt, + h = 0.15, + season = c("dummy", "harmonic", "none"), + max.iter = 10, + breaks = NULL, + hpc = "none", + level = 0.05, + reg = c("lm", "rlm"), + decomp = c("stlplus", "stl"), + type = "OLS-MOSUM", + ... +) } \arguments{ \item{Yt}{univariate time series to be analyzed. This should be an object of @@ -41,7 +51,11 @@ for hpc support.} test; if a length 2 vector is passed, the first value is used for the trend, the second for the seasonality} -\item{reg}{"lm" or "rlm"} +\item{reg}{"lm" or "rlm": use regular or robust linear regression} + +\item{decomp}{"stlplus" or "stl": use the NA-tolerant decomposition package +or the reference package (which can make use of time series with 2-3 +observations per year)} \item{type}{character, indicating the type argument to \link[strucchange]{efp}} @@ -144,9 +158,6 @@ if (requireNamespace("forecast", quietly = TRUE)) { } } -} -\author{ -Jan Verbesselt } \references{ Verbesselt J, Hyndman R, Newnham G, Culvenor D (2010). @@ -164,5 +175,7 @@ Time Series. \emph{Remote Sensing of Environment}, \bold{114}(12), \cr \code{\link[strucchange]{breakpoints}} for more examples and background information about estimation of breakpoints in time series. } +\author{ +Jan Verbesselt +} \keyword{ts} - diff --git a/man/bfast01.Rd b/man/bfast01.Rd index 74d127e..639adf0 100644 --- a/man/bfast01.Rd +++ b/man/bfast01.Rd @@ -4,10 +4,23 @@ \alias{bfast01} \title{Checking for one major break in the time series} \usage{ -bfast01(data, formula = NULL, test = "OLS-MOSUM", level = 0.05, - aggregate = all, trim = NULL, bandwidth = 0.15, functional = "max", - order = 3, lag = NULL, slag = NULL, na.action = na.omit, reg = "lm", - stl = "none") +bfast01( + data, + formula = NULL, + test = "OLS-MOSUM", + level = 0.05, + aggregate = all, + trim = NULL, + bandwidth = 0.15, + functional = "max", + order = 3, + lag = NULL, + slag = NULL, + na.action = na.omit, + reg = "lm", + stl = "none", + sbins = 1 +) } \arguments{ \item{data}{A time series of class \code{\link[stats]{ts}}, or another @@ -56,6 +69,8 @@ omitted.} \item{na.action}{arguments passed on to \code{\link[bfast]{bfastpp}}} \item{stl}{argument passed on to \code{\link[bfast]{bfastpp}}} + +\item{sbins}{argument passed on to \code{\link[bfast]{bfastpp}}} } \value{ \code{bfast01} returns a list of class \code{"bfast01"} with the @@ -77,7 +92,7 @@ either a model with 0 or with 1 breakpoint. It proceeds in the following steps: 1. The data is preprocessed with bfastpp using the arguments -order/lag/slag/na.action/stl. +order/lag/slag/na.action/stl/sbins. 2. A linear model with the given formula is fitted. By default a suitable formula is guessed based on the preprocessing parameters. @@ -143,9 +158,6 @@ plot(bf2, plot.type = "multiple", plot(bf3) -} -\author{ -Achim Zeileis, Jan Verbesselt } \references{ de Jong R, Verbesselt J, Zeileis A, Schaepman M (2013). Shifts @@ -160,5 +172,7 @@ scores, F statistics, and OLS residuals. \emph{Econometric Reviews}, \code{\link[bfast]{bfastmonitor}}, \code{\link[strucchange]{breakpoints}} } +\author{ +Achim Zeileis, Jan Verbesselt +} \keyword{ts} - diff --git a/man/bfast01classify.Rd b/man/bfast01classify.Rd index 71b3ba8..6d4d11e 100644 --- a/man/bfast01classify.Rd +++ b/man/bfast01classify.Rd @@ -4,7 +4,12 @@ \alias{bfast01classify} \title{Change type analysis of the bfast01 function} \usage{ -bfast01classify(object, alpha = 0.05, pct_stable = NULL) +bfast01classify( + object, + alpha = 0.05, + pct_stable = NULL, + typology = c("standard", "drylands") +) } \arguments{ \item{object}{\code{\link[bfast]{bfast01}} object, i.e. the output of the @@ -47,9 +52,6 @@ ndvi <- as.ts(zoo(som$NDVI.a, som$Time)) bf1 <- bfast01(ndvi) bfast01classify(bf1, pct_stable = 0.25) -} -\author{ -Rogier de Jong, Jan Verbesselt } \references{ de Jong R, Verbesselt J, Zeileis A, Schaepman M (2013). Shifts @@ -59,5 +61,7 @@ in global vegetation activity trends. \emph{Remote Sensing}, \bold{5}, \seealso{ \code{\link[bfast]{bfast01}} } +\author{ +Rogier de Jong, Jan Verbesselt +} \keyword{ts,bfast01} - diff --git a/man/bfast0n.Rd b/man/bfast0n.Rd new file mode 100644 index 0000000..53b30e1 --- /dev/null +++ b/man/bfast0n.Rd @@ -0,0 +1,75 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/bfast0n.R +\name{bfast0n} +\alias{bfast0n} +\title{Detect multiple breaks in a time series} +\usage{ +bfast0n( + data, + formula = response ~ trend + harmon, + order = 3, + lag = NULL, + slag = NULL, + na.action = na.omit, + stl = c("none", "trend", "seasonal", "both"), + decomp = c("stlplus", "stl"), + sbins = 1, + ... +) +} +\arguments{ +\item{data}{A time series of class \code{\link[stats]{ts}}, or another +object that can be coerced to such. For seasonal components, a frequency +greater than 1 is required.} + +\item{formula}{a symbolic description for the model in which breakpoints + will be estimated.} + +\item{order}{numeric. Order of the harmonic term, defaulting to \code{3}.} + +\item{lag}{numeric. Orders of the autoregressive term, by default omitted.} + +\item{slag}{numeric. Orders of the seasonal autoregressive term, by default +omitted.} + +\item{na.action}{function for handling \code{NA}s in the data (after all +other preprocessing).} + +\item{stl}{character. Prior to all other preprocessing, STL (season-trend +decomposition via LOESS smoothing) can be employed for trend-adjustment +and/or season-adjustment. The \code{"trend"} or \code{"seasonal"} component +or both from \code{\link[stats]{stl}} are removed from each column in +\code{data}. By default (\code{"none"}), no STL adjustment is used.} + +\item{decomp}{"stlplus" or "stl": use the NA-tolerant decomposition package +or the reference package (which can make use of time series with 2-3 +observations per year)} + +\item{sbins}{numeric. Controls the number of seasonal dummies. If integer +> 1, sets the number of seasonal dummies to use per year. +If <= 1, treated as a multiplier to the number of observations per year, i.e. +ndummies = nobs/year * sbins.} + +\item{...}{Additional arguments to \code{\link[strucchange]{breakpoints}}.} +} +\description{ +A combination of \code{\link{bfastpp}} and \code{\link[strucchange]{breakpoints}} +to do light-weight detection of multiple breaks in a time series +while also being able to deal with NA values by excluding them +via \code{bfastpp}. +} +\examples{ +plot(simts) # stl object containing simulated NDVI time series +datats <- ts(rowSums(simts$time.series)) +# sum of all the components (season,abrupt,remainder) +tsp(datats) <- tsp(simts$time.series) # assign correct time series attributes +plot(datats) + +# Detect breaks +bp = bfast0n(datats) + +# Default method of estimating breakpoints +bp[["breakpoints"]] +# Custom method +strucchange::breakpoints(bp, breaks=2) +} diff --git a/man/bfastmonitor.Rd b/man/bfastmonitor.Rd index 603c361..d13d000 100644 --- a/man/bfastmonitor.Rd +++ b/man/bfastmonitor.Rd @@ -4,10 +4,23 @@ \alias{bfastmonitor} \title{Near Real-Time Disturbance Detection Based on BFAST-Type Models} \usage{ -bfastmonitor(data, start, formula = response ~ trend + harmon, order = 3, - lag = NULL, slag = NULL, history = c("ROC", "BP", "all"), - type = "OLS-MOSUM", h = 0.25, end = 10, level = 0.05, hpc = "none", - verbose = FALSE, plot = FALSE) +bfastmonitor( + data, + start, + formula = response ~ trend + harmon, + order = 3, + lag = NULL, + slag = NULL, + history = c("ROC", "BP", "all"), + type = "OLS-MOSUM", + h = 0.25, + end = 10, + level = 0.05, + hpc = "none", + verbose = FALSE, + plot = FALSE, + sbins = 1 +) } \arguments{ \item{data}{A time series of class \code{\link[stats]{ts}}, or another @@ -52,7 +65,7 @@ relative to the sample size in MOSUM/ME monitoring processes.} be monitored (in MOSUM/ME processes). Default is 10 times the history period.} -\item{level}{numeric. Significance level of the monitoring (and ROC, if +\item{level}{numeric vector. Significance levels of the monitoring and ROC (if selected) procedure, i.e., probability of type I error.} \item{hpc}{character specifying the high performance computing support. @@ -63,6 +76,9 @@ Default is \code{"none"}, can be set to \code{"foreach"}. See during computation?} \item{plot}{logical. Should the result be plotted?} + +\item{sbins}{numeric. Number of seasonal dummies, passed to +\code{\link{bfastpp}}.} } \value{ \code{bfastmonitor} returns an object of class @@ -208,9 +224,6 @@ KML(timeofbreak, "timeofbreak.kmz") } -} -\author{ -Achim Zeileis, Jan Verbesselt } \references{ Verbesselt J, Zeileis A, Herold M (2012). Near real-time @@ -222,5 +235,7 @@ Sensing Of Environment}, \bold{123}, 98--108. \code{\link[strucchange]{monitor}}, \code{\link[strucchange]{mefp}}, \code{\link[strucchange]{breakpoints}} } +\author{ +Achim Zeileis, Jan Verbesselt +} \keyword{ts} - diff --git a/man/bfastpp.Rd b/man/bfastpp.Rd index 264478d..e81bf97 100644 --- a/man/bfastpp.Rd +++ b/man/bfastpp.Rd @@ -4,8 +4,16 @@ \alias{bfastpp} \title{Time Series Preprocessing for BFAST-Type Models} \usage{ -bfastpp(data, order = 3, lag = NULL, slag = NULL, na.action = na.omit, - stl = c("none", "trend", "seasonal", "both"), formula = NULL) +bfastpp( + data, + order = 3, + lag = NULL, + slag = NULL, + na.action = na.omit, + stl = c("none", "trend", "seasonal", "both"), + decomp = c("stlplus", "stl"), + sbins = 1 +) } \arguments{ \item{data}{A time series of class \code{\link[stats]{ts}}, or another @@ -28,12 +36,14 @@ and/or season-adjustment. The \code{"trend"} or \code{"seasonal"} component or both from \code{\link[stats]{stl}} are removed from each column in \code{data}. By default (\code{"none"}), no STL adjustment is used.} -\item{formula}{regression model to be used (see -\code{\link[bfast]{bfastmonitor}}). If given, only independent variables -that occur in the formula will be computed and the output will be a list of -the design matrix, the response vector, and the vector of times instead of a -single \code{data.frame}. Providing a formula may reduce relative expensive -calls of \code{model.matrix} and \code{model.frame} in following operations.} +\item{decomp}{"stlplus" or "stl": use the NA-tolerant decomposition package +or the reference package (which can make use of time series with 2-3 +observations per year)} + +\item{sbins}{numeric. Controls the number of seasonal dummies. If integer +> 1, sets the number of seasonal dummies to use per year. +If <= 1, treated as a multiplier to the number of observations per year, i.e. +ndummies = nobs/year * sbins.} } \value{ If no formula is provided, \code{bfastpp} returns a @@ -89,14 +99,12 @@ d2 <- bfastpp(ndvi, stl = "both", lag = 1:2) d2lm <- lm(response ~ lag, data = d2) summary(d2lm) -## provide a formula and use the lower level lm.fit function -d3 <- bfastpp(ndvi, stl = "both", lag = 1:2, formula = response ~ lag) -d3lm <- lm.fit(d3$X, d3$y) +## use the lower level lm.fit function +d3 <- bfastpp(ndvi, stl = "both", lag = 1:2) +d3mm <- model.matrix(response ~ lag, d3) +d3lm <- lm.fit(d3mm, d3$response) d3lm$coefficients -} -\author{ -Achim Zeileis } \references{ Verbesselt J, Zeileis A, Herold M (2011). Near Real-Time @@ -110,5 +118,7 @@ Remote Sensing and Environment. \seealso{ \code{\link[bfast]{bfastmonitor}} } +\author{ +Achim Zeileis +} \keyword{ts} - diff --git a/man/bfastts.Rd b/man/bfastts.Rd index 747424f..b44ec43 100644 --- a/man/bfastts.Rd +++ b/man/bfastts.Rd @@ -41,13 +41,12 @@ modisbrick <- brick(f) ndvi <- bfastts(as.vector(modisbrick[1]), dates, type = c("16-day")) ## data of pixel 1 plot(ndvi/10000) -} -\author{ -Achim Zeileis, Jan Verbesselt } \seealso{ \code{\link[strucchange]{monitor}}, \code{\link[strucchange]{mefp}}, \code{\link[strucchange]{breakpoints}} } +\author{ +Achim Zeileis, Jan Verbesselt +} \keyword{ts} - diff --git a/man/create16dayts.Rd b/man/create16dayts.Rd index 110b20f..3b9efb8 100644 --- a/man/create16dayts.Rd +++ b/man/create16dayts.Rd @@ -20,12 +20,11 @@ Time series creation #ndvi <- create16dayts(modisraster[1],dates) #plot(ndvi) -} -\author{ -Achim Zeileis, Jan Verbesselt } \seealso{ \code{\link[bfast]{bfastmonitor}} } +\author{ +Achim Zeileis, Jan Verbesselt +} \keyword{ts} - diff --git a/man/dates.Rd b/man/dates.Rd index a8dcc5c..21bcba5 100644 --- a/man/dates.Rd +++ b/man/dates.Rd @@ -21,4 +21,3 @@ information to create a 16-day time series object. } \keyword{datasets} - diff --git a/man/dot-bfast_cpp_closestfrom.Rd b/man/dot-bfast_cpp_closestfrom.Rd new file mode 100644 index 0000000..26a8eb7 --- /dev/null +++ b/man/dot-bfast_cpp_closestfrom.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/RcppExports.R +\name{.bfast_cpp_closestfrom} +\alias{.bfast_cpp_closestfrom} +\title{For all elements of a vector a, find the closest elements in a vector B and returns resulting indexes} +\usage{ +.bfast_cpp_closestfrom(a, b, twosided) +} +\arguments{ +\item{a}{numeric vector, ordered} + +\item{b}{numeric vector, ordered} + +\item{twosided}{logical value, if false, indexes will always point to elements in b that are less than or equal to elements in a but not greater than.} +} +\value{ +integer vector of the same size as a with elements represnting indexes pointing to closest values in b +} +\description{ +For all elements of a vector a, find the closest elements in a vector B and returns resulting indexes +} diff --git a/man/harvest.Rd b/man/harvest.Rd index 4e49da7..2108ae9 100644 --- a/man/harvest.Rd +++ b/man/harvest.Rd @@ -24,4 +24,3 @@ citation("bfast") } \keyword{datasets} \keyword{ts} - diff --git a/man/modisraster.Rd b/man/modisraster.Rd index 930e2bf..27e183b 100644 --- a/man/modisraster.Rd +++ b/man/modisraster.Rd @@ -23,4 +23,3 @@ A raster brick containing 16-day NDVI satellite images (MOD13C1 product). } \keyword{datasets} \keyword{ts} - diff --git a/man/ndvi.Rd b/man/ndvi.Rd index 9d9c498..018de66 100644 --- a/man/ndvi.Rd +++ b/man/ndvi.Rd @@ -14,4 +14,3 @@ plot(ndvi) } \keyword{datasets} \keyword{ts} - diff --git a/man/plot.bfast.Rd b/man/plot.bfast.Rd index 4a9be28..2b86250 100644 --- a/man/plot.bfast.Rd +++ b/man/plot.bfast.Rd @@ -4,9 +4,15 @@ \alias{plot.bfast} \title{Methods for objects of class "bfast".} \usage{ -\method{plot}{bfast}(x, type = c("components", "all", "data", "seasonal", - "trend", "noise"), sim = NULL, largest = FALSE, main, ANOVA = FALSE, - ...) +\method{plot}{bfast}( + x, + type = c("components", "all", "data", "seasonal", "trend", "noise"), + sim = NULL, + largest = FALSE, + main, + ANOVA = FALSE, + ... +) } \arguments{ \item{x}{\code{\link[bfast]{bfast}} object} @@ -46,11 +52,10 @@ shown on each graph. } \examples{ -## See \\code{\\link[bfast]{bfast}} for examples. +## See \code{\link[bfast]{bfast}} for examples. } \author{ Jan Verbesselt, Rob Hyndman and Rogier De Jong } \keyword{ts} - diff --git a/man/setoptions.Rd b/man/setoptions.Rd index 6b8b62d..edd13f4 100644 --- a/man/setoptions.Rd +++ b/man/setoptions.Rd @@ -1,9 +1,9 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/zzz.R \name{setoptions} -\alias{set_default_options} -\alias{set_fast_options} \alias{setoptions} +\alias{set_fast_options} +\alias{set_default_options} \title{Set package options with regard to computation times} \usage{ set_fast_options() @@ -35,4 +35,3 @@ system.time(replicate(100, bfastmonitor(NDVIa, start = c(2010, 13)))) \author{ Marius Appel } - diff --git a/man/simts.Rd b/man/simts.Rd index 07896bb..21261cb 100644 --- a/man/simts.Rd +++ b/man/simts.Rd @@ -24,4 +24,3 @@ citation("bfast") } \keyword{datasets} - diff --git a/man/som.Rd b/man/som.Rd index 5029705..4f39e9f 100644 --- a/man/som.Rd +++ b/man/som.Rd @@ -21,4 +21,3 @@ plot(NDVI) } \keyword{datasets} -