[R] Plot time series data

2007-07-16 Thread livia
Hi all, I have got a list named data, and data[[1]] is the Date(dd-mm-), data[[2]] is the time series data. I would like to plot the data in the time series format with xlab be the date.I am using the function in the library(QRMlib). tfin - timeSeries(data[[2]]) plot.timeSeriesIts(tfin) How

[R] plot time series

2007-05-08 Thread jessica . gervais
__ R-help@stat.math.ethz.ch mailing list 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.

Re: [R] plot time series

2007-05-08 Thread Roland Rau
Hi Jessica [EMAIL PROTECTED] wrote: __ R-help@stat.math.ethz.ch mailing list 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,

Re: [R] plot time series

2007-05-08 Thread jessica . gervais
Dear All, I sended my first mail as HTML by accident. It has probably been stripped off... (see first mail below) During that time, I was actually able to find a solution to my problem : I wanted to plot times on a graph representing precipitation=f(time) here is an example: time-c(2004-10-18

Re: [R] plot time series

2007-05-08 Thread jessica . gervais
Dear all, I actually would like to improve the label orientation on the x-axis (turn them to 45 degrees) I tried the par(las=2) ... but doesn't work... Do anyone knows how to do ? Jessica __ R-help@stat.math.ethz.ch mailing list

Re: [R] plot time series

2007-05-08 Thread John Kane
The short answer is that you can't. The longer answer is that you need to replace them with text. Have a look at the FAQ 7.27 How can I create rotated axis labels? It provides a pretty good example. --- [EMAIL PROTECTED] wrote: Dear all, I actually would like to improve the label

Re: [R] plot time series / dates (basic)

2004-11-02 Thread bogdan romocea
Thank you for the suggestions. I managed to fix everything except the first part. dat - date[(j-1)*points+1):(j*points)] causes a syntax error. If I do dat - vector() I end up with numbers (which is fine by me - just like SAS dates). However, after checking a couple of sources I

Re: [R] plot time series / dates (basic)

2004-11-02 Thread Gabor Grothendieck
Thank you for the suggestions. I managed to fix everything except the : first part. : dat - date[(j-1)*points+1):(j*points)] : causes a syntax error. If I do You have unbalanced parentheses. : dat - vector() : I end up with numbers (which is fine by me - just like SAS dates). :

[R] plot time series / dates (basic)

2004-11-01 Thread bogdan romocea
Dear R users, I'm having a hard time with some very simple things. I have a time series where the dates are in the format 7-Oct-04. I imported the file with read.csv so the date column is a factor. The series is rather long and I want to plot it piece by piece. The function below works fine,

Re: [R] plot time series / dates (basic)

2004-11-01 Thread Prof Brian Ripley
On Mon, 1 Nov 2004, bogdan romocea wrote: Dear R users, I'm having a hard time with some very simple things. I have a time series where the dates are in the format 7-Oct-04. So why use as.POSIXct for a date, rather than as.Date? I imported the file with read.csv so the date column is a