plot_ts: Timeseries plotting function

Description Usage Arguments Value Examples

View source: R/plot_ts.R

Description

Plot a timeseries by giving the x and y data.

Usage

1
plot_ts(xdat, ydat, y.axis.label = "Y Value", color = "red")

Arguments

xdat

dates for the x axis

ydat

data for the y axis

y.axis.label

name to put on the y axis, defaults to "Y Value"

color

chr, color of plotted symbol

Value

plot of timeseries

Examples

1
2
color <- "blue"
plot_ts(as.Date("2010-08-15"),10,color=color)

USGS-R/trainR documentation built on May 6, 2019, 10:12 a.m.