xts
xts copied to clipboard
plot.xts does not honor xaxt="n"
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")
It also ignores par(yaxt = "n")
and par(new = TRUE)
.