Re: [R] Plot for two Series

2007-10-02 Thread Gabor Grothendieck
Here is an example:

ts.plot(ts(1:10, start = 2000), ts(2:8, start = 2005))


On 10/2/07, amna khan [EMAIL PROTECTED] wrote:
 Sir the data used in function ts.plot() is of the form


   Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov
 1974 2134 1863 1877 1877 1492 1249 1280 1131 1209 1492 1621
 1975 2103 2137 2153 1833 1403 1288 1186 1133 1053 1347 1545
 1976 2020 2750 2283 1479 1189 1160 1113  970  999 1208 1467
 1977 2240 1634 1722 1801 1246 1162 1087 1013  959 1179 1229
 1978 2019 2284 1942 1423 1340 1187 1098 1004  970 1140 1110
 1979 2263 1820 1846 1531 1215 1075 1056  975  940 1081 1294


 But I have the data series of the form

YEAR Khanpur
 1   195252.1
 2   195322.4
 3195426.4
 41955   132.8
 5   195671.9
 6   195710.4
 7   1958 9.1
 8   195949.8

 because of which the sacle on x-axis are the numbers 1,2 3,..etc.

 Please guid in this regard

 Thank you




 On 10/1/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
  See ?ts.plot
  Also ?plot.zoo and ?xyplot.zoo in the zoo package.
 
  On 10/1/07, amna khan  [EMAIL PROTECTED] wrote:
   Dear Sir
  
   I want to plot the two time series having unequal number of
 observations,
   say, one series having values from year 1960 to year 2000 and other
 having
   values from year 1975 to year 2000. How to plot them on a single graph
   sheet.
  
   Regards
  
  
   --
   AMINA SHAHZADI
   Department of Statistics
   GC University Lahore, Pakistan.
  
  [[alternative HTML version deleted]]
  
   __
   R-help@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.
  
 



 --

 AMINA SHAHZADI
 Department of Statistics
 GC University Lahore, Pakistan.

__
R-help@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.


[R] Plot for two Series

2007-10-01 Thread amna khan
Dear Sir

I want to plot the two time series having unequal number of observations,
say, one series having values from year 1960 to year 2000 and other having
values from year 1975 to year 2000. How to plot them on a single graph
sheet.

Regards


-- 
AMINA SHAHZADI
Department of Statistics
GC University Lahore, Pakistan.

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Plot for two Series

2007-10-01 Thread Gabor Grothendieck
See ?ts.plot
Also ?plot.zoo and ?xyplot.zoo in the zoo package.

On 10/1/07, amna khan [EMAIL PROTECTED] wrote:
 Dear Sir

 I want to plot the two time series having unequal number of observations,
 say, one series having values from year 1960 to year 2000 and other having
 values from year 1975 to year 2000. How to plot them on a single graph
 sheet.

 Regards


 --
 AMINA SHAHZADI
 Department of Statistics
 GC University Lahore, Pakistan.

[[alternative HTML version deleted]]

 __
 R-help@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.


__
R-help@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.