Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor addVo to follow skeleton_TA structure #108

Closed

Conversation

erichung0404
Copy link

Since chartSeries is now a wrapper for chart_Series and chartSeries.chob
is deprecated, code of add* functions that manipulate chob and chobTA
objects breaks. So add* functions are refactored to use skeleton_TA
structure to coordinate with chart_Series called by chartSeries.

In addVo.R, however, quantmod::chartVo is untouched. A new chartVo is
passed to lenv inside addVo function according to skeleton_TA structure.
quantmod::chartVo will be deprecated. The structure is described in #96.

As chartSeries is now a wrapper for chart_Series and chartSeries.chob
is deprecated, code of add* functions that manipulate chob and chobTA
objects breaks. So add* functions are refactored to use skeleton_TA
structure to coordinate with chart_Series called by chartSeries.

In addVo.R, however, quantmod::chartVo is untouched. A new chartVo is
passed to lenv environment in addVo according to skeleton_TA structure.
quantmod::chartVo will be deprecated.
When subset is specified in chartSeries, addVo() doesn't apply correct
subset volume to the chart. To fix this issue, subset setting is applied
to chartVo function in chartSeries and pass subset volume to the
environment.

y-axis limit of the frame is expanded to reserve space from the top.
When reChart is called to draw subset volume, bar colors are wrong and
subset functionality fails. The volume chart starts from the first day
of the series no matter what subset period is specified.

Pull out the panel settings from chartVo and wrap in expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant