Ich habe leider ein Problem, wenn ich xts-Objekte plotte und als ps-Datei speichern möchte; es fehlt die Hälfte meiner Zeitreihe bzw. des gesamten Plots - Nehme ich die 'normale' Plot-Funktion, in dem ich mein Objekt umformatiere, zeigt er das an, was ich erwarten würde - Kennt jemand das Problem, und kann mir helfen (oder kann es zumindest jemand nachvollziehen, es kann ja auch sein, dass die Installation fehlerhaft ist oder sowas...)?
Dank&Gruß
schubbiaschwilli
Code: Alles auswählen
library(xts)
# Load data, filter and remove NAs
DAX <- getSymbols("^GDAXI",auto.assign = FALSE)
DAX <- DAX["2013/2017",4]
DAX <- DAX[!is.na(DAX)]
# Create xts-plot (DAX is a xts-class-object)
postscript("DAX.ps")
plot(DAX)
dev.off()
# Create 'normal' plot
postscript("DAX_2.ps")
plot(x=index(DAX), y=DAX, type="l")
dev.off()