Displaying 3 results from an estimated 3 matches for "dt_ts".
2023 Jan 13
1
Customise Plot tick label on time series plot using date series
?s 05:11 de 13/01/2023, roslinazairimah zakaria escreveu:
> Hi,
>
> I would like to customise my date series on the plot. I tried this:
>
> dt_ts <- ts(dt)
> autoplot(dt_ts[,2]) + ylab("Charge counts") + xlab("Daily")
>
> but the label is not the date series.
>
> Tqvm for any help given.
>
>
>> dput(dt)
> structure(list(time = c("1/1/2014", "2/1/2014", "3/1/201...
2024 Oct 02
1
How to install this package
Hi Enrico, yes it works. I can also plot the graph.
Next question, how do I delete the date from 16 December until 31 December
2014?
Thank you very much.
> dt$time <- as.POSIXct(dt$time)> > dt_ts <- xts(dt$count, dt$time)> str(dt_ts)An xts object on 2014-01-01 / 2014-12-31 23:59:00 containing:
Data: integer [525600, 1]
Index: POSIXct,POSIXt [525600] (TZ: "")
plot(dt_ts)
On Tue, Oct 1, 2024 at 7:30?PM Enrico Schumann <es at enricoschumann.net>
wrote:
>...
2023 Jan 13
1
Customise Plot tick label on time series plot using date series
Hi,
I would like to customise my date series on the plot. I tried this:
dt_ts <- ts(dt)
autoplot(dt_ts[,2]) + ylab("Charge counts") + xlab("Daily")
but the label is not the date series.
Tqvm for any help given.
> dput(dt)
structure(list(time = c("1/1/2014", "2/1/2014", "3/1/2014", "4/1/2014",
"5/1/201...