plot_single_uts_vector: Plot a uts_vector in a single plot

Description Usage Arguments See Also Examples

Description

A helper function that implements plot.uts_vector for argument plot.type="single".

Usage

1
2
3
plot_single_uts_vector(x, ..., max_dt = ddays(Inf), xlab = "", ylab = "",
  col = seq_along(x), lty = 1, lwd = 1, pch = 1, type = "l",
  legend = TRUE, legend.x = "topright", legend.y = NULL)

Arguments

x

a "uts_vector" object with numeric or logical observation values.

...

arguments passed to plot.uts.

max_dt

a non-negative duration object. Consecutive observations that are more than this amount apart in time, are not connected by a line in the graph.

xlab

a label for the x axis.

ylab

a label for the y axis

col, lty, lwd, pch, type

graphical parameters. See plot.default.

legend

boolean. Whether to add a legend to the plot.

legend.x, legend.y

the x and y co-ordinates to be used to position the legend.

See Also

matplot

Examples

1
2
3
plot_single_uts_vector(ex_uts_vector(), xlab="time")
plot_single_uts_vector(ex_uts_vector(), type="o", main="Fruit", max_dt=dhours(12))
plot_single_uts_vector(ex_uts_vector(), type="p", pch=2, ylim=c(40, 60), cex=2)

andreas50/utsMultivariate documentation built on May 12, 2019, 10:31 p.m.