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

plot.xts ignores col when type = "h" #210

Closed
joshuaulrich opened this issue Aug 25, 2017 · 0 comments
Closed

plot.xts ignores col when type = "h" #210

joshuaulrich opened this issue Aug 25, 2017 · 0 comments
Assignees

Comments

@joshuaulrich
Copy link
Owner

joshuaulrich commented Aug 25, 2017

Description

plot.xts() always colors the histogram green/red when the series is above/below zero, regardless of col specified by the user.

Minimal, reproducible example

library(xts)
data(sample_matrix)
x <- as.xts(sample_matrix, dateFormat="Date")
layout(matrix(1:2, 2, 1))
plot(x[,4], type = "h", col = "grey")
plot(coredata(x[,4]), type = "h", col = "grey")

image

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