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

2018-08-09 Thread Jeff Newmiller
Pre-process your data into per-day or per-month records, then plot it. There are many ways to do this... for example, base R has the aggregate function, and the dplyr package has the group_by/summarise functions, and the data.table package can do this as well (read the vignettes). All of these

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

2018-08-09 Thread MacQueen, Don via R-help
Normally, one turns off the x-axis tick marks and labels by supplying xaxt='n' in the plot() call, and then adds a customized x-axis using the axis() function. But without more information, little help can be provided (a vague question receives a vague answer). I'd suggest reviewing the pos

[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 [[