Skip to content
Prev 86182 / 398503 Next

decomposed.ts class and method

Hi, Erin:

	  I tried the example in the help file for 'decompose':

      m <- decompose(co2)
      m$figure
      plot(m)

	  Consistent with your post, I got the following:

 > class(m)
[1] "decomposed.ts"

	  Then I tried the following:

 > methods(class="decomposed.ts")
[1] plot.decomposed.ts*

    Non-visible functions are asterisked

	  Then 'getAnywhere("plot.decomposed.ts")' should produce what you 
want.  Alternatively, consider the following:

 > methods("plot")
  [1] plot.acf*           plot.data.frame*    plot.Date*
  [4] plot.decomposed.ts* plot.default        plot.dendrogram*
<snip...?>

	  Thus, 'getAnywhere' should give you the plot method in this case. 
The class definition is outlined under 'Value' in the "decompose" help 
page.  For an example, try str(m).

	  hope this helps.
	  spencer graves
Erin Hodgess wrote: