Description Usage Arguments Details Value See Also
View source: R/plot_functions.R
plot_snake
plots the mean and N-sigma band for a GP.
1 2 |
dat |
(data frame/matrix) data for time series. |
sigma |
(float) Plot the +/-sigma band (>0). |
add |
(logical) if TRUE then start a new plot |
col.line |
(colour) Colour of the mean line. |
col.fill |
(colour) Colour of the +/-sigma band. |
col.border |
(colour) Colour of +/-sigma limits. |
... |
(anything) any other graphical keywords to be passed to
|
Produces a 'snake' plot. This is a plot showing the mean of a Gaussian process against time (as a thick line) and the variance of the process illustrated as a band. The lines goes through mu(t) and the band covers mu(t) +/- sigma*dy(t) where dy(t) is the standard deviation - this is actually sqrt(diag(covariance_matrix)). Sigma is a constant (>0) to allow one to plot e.g. the +/-2 std.dev band.
None.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.