Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

rtsplot (version 0.1.5)

rtsplot.text: Add text to time series plot

Description

Add text to time series plot

Usage

rtsplot.text(y, ...)

Value

nothing

Arguments

y

xts object

...

additional parameters to the lines

Examples

Run this code
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)

Run the code above in your browser using DataLab