Description Usage Arguments Value Examples
Useful for comparing the performance of several investments, over their full histories or mutual lifetimes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
prices |
Data frame with one column of prices for each investment and a date variable named Date. |
tickers |
Character vector of ticker symbols that Yahoo! Finance recognizes, if you want to download data on the fly. |
... |
Arguments to pass along with |
gains |
Data frame with one column of gains for each investment and a date variable named Date. |
initial |
Numeric value specifying value to scale initial prices to. |
plotly |
Logical value for whether to convert the
|
title |
Character string. |
base_size |
Numeric value to pass to
|
tooltip_size |
Numeric value to pass to |
point_size |
Numeric value to pass to |
line_size |
Numeric value to pass to
|
ticklabel_size |
Numeric value to pass to |
legend_position |
Character string to pass to |
return |
Character string specifying what to return. Choices are
|
Depending on return
and plotly
, a
ggplot
/plotly
object, a data
frame with the source data, or a list containing both.
A ggplot
object.
1 2 3 4 5 | ## Not run:
# Plot growth of $10k in VFINX and BRK-B
plot_growth(tickers = c("VFINX", "BRK-B"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.