y = rtsplot.fake.stock.data(50, ohlc=TRUE)
symbol = 'SPY'
# plot
layout(1)
rtsplot(y, type = 'n')
rtsplot.ohlc(y)
rtsplot.legend(symbol, 'black', y)
rtsplot.theme.set(legend.bg.col=grDevices::adjustcolor('blue', 25/255))
rtsplot.corner.label('Logo \uA9', x=1, y=-1, cex = 0.7, space='figure', col='blue')
rtsplot.theme.set(legend.bg.col = grDevices::adjustcolor('white', 200/255))
Run the code above in your browser using DataLab