Description Usage Arguments Details Value Notes See Also Examples
View source: R/plot_functions.R
plot_ts
plots uneven time series data frame.
1 2 3 4 5 |
ts1 |
(matrix) data for time series. |
ts2 |
(data frame) option data for second time series. |
xlim, ylim |
(vectors) numeric vectors of length 2, giving the x and y coordinates ranges. |
xlab, ylab |
(strings) titles for the x, y axes. |
grid |
(logical) plot a grid? |
add |
(logical) if TRUE then start a new plot |
pch |
(integer) An integer specifying the symbol to be used as the default in plotting points. |
cex |
(float) A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. |
lwd |
(float) line width. |
col |
(colour) Specification of the point/line colour. |
main |
(string) An overall title |
extend |
(float) Extend the time axis by this factor. |
error |
(logical) plot errors if available? |
type |
(character) What type of plot. See |
grid.lwd |
(float) The line width (>0) for the grid. |
grid.col |
(colour) The colour of the grid. |
horizon |
(logical or float) make a 'horizon' style plot? |
cex.lab |
(float) The magnification to be used for x and y labels relative to the current setting of cex. |
... |
(anything) any other graphical keywords to be passed to
|
Makes a nice plot of some time series data. The data are input as a data frame
None.
Input data: note that the input data dat
is not a traditional
R
time series object. Such objects are only suitable for regularly
sampled data. These plotting functions are designed to work with data of
arbitrary sampling, we therefore need to explicitly list times and values.
The input objects is a matrix with at least two columns
called t
(time) and y
(value). An error of the value
may be provided by a dy
column. If the times are not points but bins
of finite width, the width of each time bin may be specified with a
dt
column. Any other columns are ignored.
1 | plot_ts(drw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.