[Traminer-users] transforming the x-axis scale of seqdplot

Hadrien Commenges hc at parisgeo.cnrs.fr
Mon Mar 2 10:32:29 CET 2015


The x-axis shows the column names, so you just need to rename your variables. Be careful: R accepts names beginning with a number (6:00 for example) but you can't call that variable afterwards (mydata$6:00). 

Hadrien 

----- Mail original -----

De: "Pierre Blavier" <pit.blavier at gmail.com> 
À: "Users questions" <traminer-users at lists.r-forge.r-project.org> 
Envoyé: Lundi 2 Mars 2015 09:26:05 
Objet: [Traminer-users] transforming the x-axis scale of seqdplot 

Hi TramineR users ! 

Rather silly question : 

What i have : i have data in STS-format describing time-use of each individual accross a 24H-day and for periods of 10 minutes. Hence i have 24*6=144 variables (time1, time2, time3, ..., time144. time1 corresponds to 06h00-06h10 A.M. andsoforth) describing 12 possible states (which is the maximum allowed by tramineR). 

My question is : how could i obtain in the plots of sequence (for e.g. seqdplot) an x-axis legend with time in hours instead of time corresponding to the index of my variables defining the sequence (i.e. 1, 2, 3, ..., 144) ? For example something like only the hours beginnning at 6h00 A.M. ? 

It looks silly question but i have not found yet the solution even if i have screen subjects of this list, TramineR manuals, and consulted options of the seqdplot function (xtlab, start, ...). Does anybody have already met the problem ? 

Thanks a lot, best, 

Pierre Blavier 








_______________________________________________ 
Traminer-users mailing list 
Traminer-users at lists.r-forge.r-project.org 
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20150302/d13d4e94/attachment.html>


More information about the Traminer-users mailing list