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 71 forks source link

plot.xts does not honor xaxt="n" #196

Open joshuaulrich opened 7 years ago

joshuaulrich commented 7 years ago

Description

plot.xts() plots the x-axis even if xaxt = "n" is specified.

Expected behavior

The x-axis labels, ticks, etc should not be plotted. The call to plot.default below produces the desired behavior.

Minimal, reproducible example

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

image

joshuaulrich commented 7 years ago

It also ignores par(yaxt = "n") and par(new = TRUE).