[R] Plot function: hourly data and x-axis

2018-08-09 Thread Edoardo Silvestri
Hi all,
I have a little problem with plot function..
I have an hourly dataset and I would like plot a variable with x-axis based
on daily or monthly frequency, just to have a better visualization and
avoid on x-axis all hours of the dataset.

Do you know what is the solution?
Thanks
Edo

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Lag function

2018-08-07 Thread Edoardo Silvestri
I have an hourly database and I defined a variable as follows:
time<-ts(data$variable, frequency=24)

If i need to create the variables with one day lag, the corresponding
command is lag(time,24)?

Thank you

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] New post for Rhelp

2018-08-01 Thread Edoardo Silvestri
I have a database based on hourly data and I need to forecast next 24h of a
single variable. I was thinking about applying an ARIMA model with some
exogenous variables but I don't succeed to configure the hourly frequency,
estimate ARIMA parameters, pdq ( exists some tests to check which
parameters are better for the model?) and the structure of the model in its
easy form because I would also like to introduce some seasonality form by
analyzing some variables I highlighted some daily and weekly behaviours
similar.



I recognize that it could be quite difficult the problem but if you have
also some useful links or some codes that can help me, please send me.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.