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

Error when ylim passed to addSeries and on=NA #220

Closed
joshuaulrich opened this issue Dec 12, 2017 · 0 comments
Closed

Error when ylim passed to addSeries and on=NA #220

joshuaulrich opened this issue Dec 12, 2017 · 0 comments
Assignees

Comments

@joshuaulrich
Copy link
Owner

addSeries() throws an error if adding a new panel (on = NA) an ylim is present. This happens whether called via addSeries() directly or via lines() or points(). May be related to #76.

require(xts)
data(sample_matrix)
x <- as.xts(sample_matrix, dateFormat="Date")
plot(diff(log(x[,4])))
addSeries(diff(log(x[,1])), ylim=c(-1,1)/100)
# Error in diff(x) * c(Env$pad1, Env$pad3) : 
#   non-numeric argument to binary operator
# In addition: Warning message:
# In structure(ylim, fixed = fixed) :
#   Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
#   Consider 'structure(list(), *)' instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant