Description Usage Arguments Value Author(s) Examples
Draws a new line plot using a time series of metric values.
1 2 3 4 5 6 7 8 9 |
metric |
Time series of (time, value) returned by metric functions. |
title |
Plot title. |
subtitle |
Plot subtitle. |
font_size |
Baseline font size. |
line_size |
Line thickness. |
bw |
Black and white color scheme flag. |
legend |
Plot legend. |
axis.text.size |
Axis font size. |
title.size |
Title font size. |
plot
Kostin Andrey <andrey.kostin@portfolioeffect.com>
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
data(aapl.data)
data(goog.data)
data(spy.data)
portfolio=portfolio_create(priceDataIx=spy.data)
portfolio_settings(portfolio,portfolioMetricsMode="price",windowLength = '3600s')
positionGOOG=position_add(portfolio,'GOOG',100,priceData=goog.data)
positionAAPL=position_add(portfolio,'AAPL',300,priceData=aapl.data)
util_plot2d(compute(log_return(portfolio))[[1]],title="Portfolio return")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.