This is a wrapper for the OpenCPU application. It is a single function that calls out to various plot types. The function prints a plot to the graphics device and returns nothing.
1 2 3 | plotwrapper(type = c("smoothplot", "highlowplot", "areaplot"),
ticker = "GOOG", from = "2013-01-01", to = Sys.time(),
current = FALSE)
|
type |
type of plot to create. One of "smoothplot", "highlowplot", "areaplot". |
ticker |
stock ticker symbol. E.g. "GOOG". |
from |
start date. Either string or date object. |
to |
end date. Either string or date object. |
current |
include the current price of this stock. TRUE/FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.