Skip to content
Prev 387239 / 398502 Next

xyplot.zoo trouble with the index when I use microseconds (type POSIXct)

yes, good idea, eventually here's what I will do:

time(DF.w) <- as.POSIXlt(time(DF.w))$sec
myticks <- round(pretty(time(DF.w)),6)
mylabels <- as.character(formatC(myticks,format = 
"f",digits=6,width=9,flag=" "))

xyplot(????? DF.w
 ?, xlab = paste0("Seconds from ",format(mystart,"%Y-%m-%d %H:%M"))
 ?, type = "l"
 ?, screens = 1
 ?,? col = c("red","blue","black")
 ?,? scales = list( y= list(relation = "free", abbreviate=TRUE)
 ????????????????????? , x = list( at = myticks, labels = mylabels
 ????????????????????? , rot = 45, abbreviate = FALSE
 ????????????????????? , cex = 0.6)
 ???????????? )
)

Thank you



Le 22/02/2021 ? 19:32, Gabor Grothendieck a ?crit?: