Description Usage Arguments Details Value Note References See Also Examples
Adds a vertical line to the current quantmod chart
1 |
dtlist |
Plots a vertical line at given index. Alternatively, this can be one of the following strings: “secs”, “seconds”, “mins”, “minutes”, “hours”, “days”, “weeks”, “months”, “years” |
on |
panel to add vertical line on |
col |
color of the line |
... |
parameters to pass to
|
If dtlist
is a character string, a vertical line
will be drawn at the end of the periods specified by
dtlist
which will be used as the on
argument in a call to endpoints
. (Not
to be confused with the on
argument of this
function which is used to indicate which panel to plot
the vertical line(s) on.) Therefore, if dtlist
is
character, it must be a valid value for the on
argument of the endpoints
function which
(from endpoints
help) include: “us”
(microseconds), “microseconds”, “ms”
(milliseconds), “milliseconds”, “secs”
(seconds), “seconds”, “mins” (minutes),
“minutes”, “hours”, “days”,
“weeks”, “months”, “quarters”, and
“years”.
used for its side effect.
Currently, this function is sort of a hack. It does not
update the chob
. So, if you use this function,
then you will no longer be able to do things like
zoomChart
. There are a few
variations of this function in the works.
https://stat.ethz.ch/pipermail/r-sig-finance/2009q2/004018.html
chartSeries, addTA
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.