joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
219 stars 70 forks source link

Fix legend when y-axis is log scale #407

Closed joshuaulrich closed 5 months ago

joshuaulrich commented 9 months ago

The legend isn't rendered on the plot if the y-axis is a log scale.

library(xts)
plot(.xts(cumsum(1:100), 1:100), log = TRUE)
addLegend("topleft")  # error