4 ms·
One of the best all-around plotting packages for R (in my opinion) is Hadley Wickham's ggplot2 . Take a look at the following pages: http://had.co.nz/ggplot2/s
by rosenbergdm 16y ago
One of the best all-around plotting packages for R (in my opinion) is Hadley Wickham's ggplot2 .
Take a look at the following pages:
http://had.co.nz/ggplot2/scale_datetime.html http://had.co.nz/ggplot2/scale_datetime.html
http://had.co.nz/ggplot2/geom_line.html http://had.co.nz/ggplot2/geom_line.html
While not specifically inentended as a 'time-series' package, ggplot2's facilities handle time-series data well. Ggplot2 is available on CRAN (i.e. install.packages('ggplot2'); ).
In truth, you don't even have to use a special package if the 'prettiness isn't important.'
df <- data.frame(
day7 = start + round(runif(100, max = 7 * 86400)),
hour10 = start + round(runif(100, max = 10 * 3600)),
y = runif(100)
);
plot(df$day7, df$y);
plot(df$hour10, df$y);
- dantheman 16y agoExcellent, thanks.