Description Usage Arguments Details Value Author(s) See Also Examples
The function computes a trend
in a time series and creates text strings of the estimated trend
that ca be used in plots.
1 2 3 |
Yt |
a time series |
trend |
a function how the |
period |
an additional sub-period of x for which trends should be additionally computed |
unit |
|
per.year |
Is |
This function is used in MtsPlot
A list with the estimated trends and with text.
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
1 2 3 4 5 6 7 8 9 10 | trd <- TrendText(ndvi, period=c(1982, 1996), unit="")
plot(ndvi)
lines(trd$trd1, col="red", lwd=2)
lines(trd$trd2, col="blue", lwd=2, lty=2)
text(2003, 0.19, trd$full.perc, col="red", cex=1.5) # full trend in %
text(2003, 0.36, trd$full.slope, col="red", cex=1.5) # full trend slope with unit
text(2003, 0.34, trd$full.slope2, col="red", cex=1.5) # full trend slope without unit
text(1988, 0.19, trd$subs.perc, col="blue", cex=1.5) # period: trend in %
text(1988, 0.36, trd$subs.slope, col="blue", cex=1.5) # period: trend slope with unit
text(1988, 0.34, trd$subs.slope2, col="blue", cex=1.5) # period: trend slope without unit
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.