[R] plot data frame
Jannis
bt_jannis at yahoo.de
Mon Feb 28 21:34:44 CET 2011
I would transfer your matrix to a vector.....assuming that your dataset
is called data.matrix:
as.vector(t(data.matrix[,-1]))
should give you what you want...
HTH
Jannis
On 02/28/2011 07:19 PM, Chuse chuse wrote:
> Dear R user,
> How can i plot this data as one time series - notice that it is not column wise.
> V1 V2 V3 V4 V5 V6 V7
> [1,] 1950.01 1.07 1.12 1.12 1.25 1.16 1.15
> [2,] 1950.07 1.16 1.20 1.30 1.31 1.36 1.34
> [3,] 1951.01 1.34 1.36 1.40 1.47 1.55 1.45
> [4,] 1951.07 1.56 1.62 1.63 1.54 1.56 1.73
> [5,] 1952.01 1.57 1.54 1.59 1.57 1.67 1.70
> [6,] 1952.07 1.81 1.83 1.71 1.74 1.85 2.09
> [7,] 1953.01 1.96 1.97 2.01 2.19 2.16 2.11
> [8,] 1953.07 2.04 2.04 1.79 1.38 1.44 1.60
> [9,] 1954.01 1.18 0.97 1.03 0.96 0.76 0.64
> [10,] 1954.07 0.72 0.92 1.01 0.98 0.93 1.14
>
> Thank you very much beforehand.
> Chuse
>
> ______________________________________________
> R-help at r-project.org 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.
>
More information about the R-help
mailing list