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

Gilbert Ritschard Gilbert.Ritschard at unige.ch
Tue Mar 3 10:28:43 CET 2015


The best solution is to provide the labels (column names) once at the seqdef stage with the ‘cnames’ argument. The labels will then be consistently used for each plot (unless  overwritten with the xtlab argument of the seqplot function).

Likewise, the xtstep argument, which is also best specified at the seqdef stage, can be changed for a specific plot by providing a xtstep argument to the plot function (see plot.stslist help page).

Best.
Gilbert




From: traminer-users-bounces at lists.r-forge.r-project.org [mailto:traminer-users-bounces at lists.r-forge.r-project.org] On Behalf Of Dina Frommert
Sent: Monday, March 02, 2015 11:10
To: traminer-users at lists.r-forge.r-project.org
Subject: Re: [Traminer-users] transforming the x-axis scale of seqdplot

Hi Pierre,

you could use xtlab in the seqplot function to specify the labels and xtstep in the seqdef function to specifiy the step between the tickmarks.

Best
Dina

Gesendet: Montag, 02. März 2015 um 10:32 Uhr
Von: "Hadrien Commenges" <hc at parisgeo.cnrs.fr<mailto:hc at parisgeo.cnrs.fr>>
An: "Users questions" <traminer-users at lists.r-forge.r-project.org<mailto:traminer-users at lists.r-forge.r-project.org>>
Betreff: Re: [Traminer-users] transforming the x-axis scale of seqdplot
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

________________________________
De: "Pierre Blavier" <pit.blavier at gmail.com<mailto:pit.blavier at gmail.com>>
À: "Users questions" <traminer-users at lists.r-forge.r-project.org<mailto: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<mailto:Traminer-users at lists.r-forge.r-project.org>
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users

_______________________________________________ Traminer-users mailing list Traminer-users at lists.r-forge.r-project.org<mailto: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/20150303/e96f937c/attachment.html>


More information about the Traminer-users mailing list