Vote count:
0
I created a time series with:
ts_0615391206 <- ts(demand_rev_0615391206$estimated_demand,
start=as.Date(min(demand_rev_0615391206$date),format = "d%/m%/Y%"),
end=as.Date(max(demand_rev_0615391206$date),format = "d%/m%/Y%"))
ts_0615391206
Time Series:
Start = 16125
End = 16318
Frequency = 1
[1] 2.71 2.47 3.86 3.61 5.78 5.59 3.28 3.40 3.34 3.68 3.40 3.41 2.69 2.60 2.88 2.76 3.01 3.19 3.51 3.49 2.88 3.06 3.83 3.62
[25] 2.88 2.55 2.52 2.22 3.44 3.02 3.45 3.12 3.65 3.57 2.91 2.90 3.94 4.12 3.01 3.10 3.96 4.30 3.02 2.87 3.06 3.10 2.18 2.08
[49] 3.02 3.29 3.67 3.87 4.20 4.12 2.76 2.91 2.74 2.97 3.34 3.19 4.62 4.67 4.62 4.95 3.88 3.86 5.01 4.97 5.32 6.02 3.84 3.50
[73] 3.86 3.45 3.71 3.54 2.81 2.84 4.64 4.47 5.40 5.10 6.17 6.24 5.80 5.72 6.88 6.92 6.68 6.17 5.94 5.92 4.01 4.42 5.28 4.91
[97] 5.27 5.46 6.11 6.57 4.90 5.17 4.21 4.04 3.98 4.13 3.89 3.91 4.11 4.22 3.93 3.84 3.43 3.70 4.31 4.44 4.98 4.68 5.20 5.04
[121] 4.89 5.04 3.97 3.86 2.58 2.51 3.64 3.42 3.93 3.78 4.15 3.72 6.14 6.17 6.93 6.98 7.50 7.29 8.10 8.26 7.31 7.14 6.67 6.71
[145] 6.72 6.31 6.10 5.81 6.53 7.09 6.39 6.83 8.69 9.46 8.52 7.44 8.43 8.17 8.39 8.64 6.14 7.05 7.91 7.56 8.46 8.81 6.30 6.49
[169] 6.33 7.45 7.39 7.41 8.08 8.51 8.14 8.55 9.42 10.17 10.15 9.54 7.23 7.41 6.47 6.06 7.96 7.79 8.95 8.63 9.49 9.21 8.66 8.19
[193] 7.24 6.46
When I plot the ts
plot.ts(ts_0615391206)
on x axis I see numbers (count of days since 1/1/1970 to date) instead of dates. Any idea how to fix that ?
asked 59 secs ago
R time series plot - add dates on x axis
Aucun commentaire:
Enregistrer un commentaire