rtsplot.text: Add text to time series plot

View source: R/rtsplot.r

rtsplot.textR Documentation

Add text to time series plot

Description

Add text to time series plot

Usage

rtsplot.text(y, ...)

Arguments

y

xts object

...

additional parameters to the lines

Value

nothing

Examples

y = rtsplot.fake.stock.data(1000)
symbol = 'SPY'
	
 # plot
 layout(1)
 rtsplot(y, type = 'l', col='black')
 rtsplot.text(y[100], 'Text', col='red')
rtsplot.legend(symbol, 'black', y)


rtsplot documentation built on Sept. 24, 2023, 1:07 a.m.