View source: R/history_trend_plot.R
history_trend_plot | R Documentation |
Get the plot of the exchange rate between 2 currencies in the time period.
start |
String with the start date. The format should be "yyyy-mm-dd", for example "2021-12-31" |
end |
String with the end date. The format should be "yyyy-mm-dd", for example "2021-12-31" |
base |
String with the code of the base currency. Defaults to CAD, the canadian dollars. @param aim String with the code of the aim currency. Defaults to CAD, the canadian dollars. |
This function need the user input the start date, end date, base currency and the aim currency for getting the plot of the currency exchange rate between the 2 currencies during the time period.
It will return a plot of the currency exchange rate between the base currency and the aim currency in the time period. If there is an error, it will return error and get the error message.
the plot x-axis will be the date and y-axis will be the currency exchange rate.
## Not run: history_trend_plot("2021-12-12", "2021-12-15", "USD","CAD") history_trend_plot("2021-01-01", "2022-01-01","USD") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.