Open joshuaulrich opened 7 years ago
plot.xts() plots the x-axis even if xaxt = "n" is specified.
plot.xts()
xaxt = "n"
The x-axis labels, ticks, etc should not be plotted. The call to plot.default below produces the desired behavior.
plot.default
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).
par(yaxt = "n")
par(new = TRUE)
Description
plot.xts()
plots the x-axis even ifxaxt = "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