Skip to content

Plot TS-matrix as a surface

2 messages · R@Nabble, Paul Gilbert

#
Jeff,

I've taken the liberty to download and adjust your preliminary function code
for persp() for my purposes, i.e. simply replacing your ts-matrix with my
own doesn't work. Unfortunately (due to my limited expertise of R) I haven't
been able to get the lables for the y- and x-axis (you use trans3d, etc.)
replaced with my own "rownames" and "colnames". For now, I will simply keep
the x-axis as 1:nrows and y-axis as 1:ncols, i.e. the default persp
settings.

Request/suggestion: don't know whether it would be possible for you in your
final code to simply allow a user to feed a zoo/ts matrix as main input,
perhaps by specifying the date-format, and for your function then to
automatically create the axes labels.

Still, your preliminary code has enabled me more flexibility re inputs for
the persp function and will leave it for now as is. 

Paul,

Sorry, but I haven't had time yet to play around with the tframe package.

Thx again to both.

PS
R at Nabble wrote:
basic)
R at Nabble
contains
the
etc.
http://www.nabble.com/Plot-TS-matrix-as-a-surface-tp22222236p22225107.html

  
    
#
R at Nabble wrote:
Well, it could be that I am missing something important in what you are 
trying to do, but you might want to look at it (tfpersp in tframePlus). 
It certainly allows you to pass your own labels, and most of the other 
arguments to persp. It just tries to make default guesses that work for 
time series, and provide windowing.

Paul
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank of
Canada does not waive any related rights. Any distribution, use, or copying of this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le pr?sent courriel peut contenir de l'information privil?gi?e ou confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires d?sign?s est interdite. Si vous recevez
ce courriel par erreur, veuillez le supprimer imm?diatement et envoyer sans d?lai ?
l'exp?diteur un message ?lectronique pour l'aviser que vous avez ?limin? de votre
ordinateur toute copie du courriel re?u.