[R] tsplot function

Paul Gilbert pgilbert at bank-banque-canada.ca
Wed Nov 6 16:24:55 CET 2002


Jason Turner wrote:
> 
> On Tue, Nov 05, 2002 at 09:53:10PM +1300, Jason Turner wrote:
> > On Tue, Nov 05, 2002 at 12:08:34PM -0500, Gyan wrote:
> > > I understand that the tsplot function is no longer available in the
> > > latest verion. What should I do if I want to plot say the first five
> > > rows of a matrix??
> >
> > check out the help pages for matplot() and layout().
> 
> Hang on, what package was tsplot in?  ts.plot is still in the ts
> library, and I don't recall ever using tsplot...
> 
> Jason

Well, there was a tsplot function in my tframe package for R in 1997.
Sometime between 1997 and 1999 I changed the name to tfplot to prevent
confusion, since it is not exactly the same as the tsplot in Splus. "No
longer available in the latest version" is not exactly the way I would
describe this, so I doubt that it is the source of your confusion, but
to set the historical record straight, there has previously been a
tsplot in an R package. 

tfplot() is still available in my tframe package in the dse bundle on
CRAN, and may do something like what you want. It, and most of the
others I believe too, treat columns as series, not rows, so use t().
tfplot() puts the series in separate graphics panels, which works better
if the scales of the series are not similar. The matplot() default is to
place all the graphs on one plot, which may be what you want.

Paul Gilbert
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list