<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br></div><div><br><div><div>On Jul 16, 2012, at 12:10 AM, Alexis gabadinho wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
Hi Joel,<br>
<br>
Use first the order function to create one single sorting variable,
and then pass this variable to the seqIplot function. Here is an
example with the biofam data frame where sequences are sorted by
gender and birthyr<br>
<br>
data(biofam)<br>
biofam.seq <- seqdef(biofam, 10:25)<br>
csort <- order(biofam$sex, biofam$birthyr)<br>
seqIplot(biofam.seq, sortv=csort)<br>
<br>
All the best,<br>
Alexis<br>
<br>
<br>
Le 16. 07. 12 08:12, Joel Schwartz a écrit :
<blockquote cite="mid:86F22BAD-C573-4BFC-BE05-0693D60AB98E@joelschwartz.com" type="cite">I'm a new TraMineR user and just ran into a problem
while using the seqIplot function. I'm making a plot of hundreds
of sequences. To make it possible to see patterns, I'm trying to
sort the sequences by more than one variable. It works as expected
when I sort by one variable. But when I try to sort by more than
one, I get the exact same result as when I sort by one variable.
<div><br>
</div>
<div>Here are the two commands I'm using</div>
<div><br>
</div>
<div># Sort by one variable</div>
<div>seqIplot(df.seq, border=NA, withlegend="right",
sortv=df$s09as) </div>
<div><br>
</div>
<div># Sort by two variables</div>
<div>seqIplot(df.seq, border = NA, withlegend="right",
sortv=c(df$s09as, df$f09as)) </div>
<div><br>
</div>
<div>I get the exact same plot either way, and no warnings or
errors.</div>
<div><br>
</div>
<div>
<div>Is there a way to sort by more than one variable?</div>
<div><br>
</div>
</div>
<div>Thanks for your help.</div>
<div><br>
</div>
<div>Best Wishes,</div>
<div>Joel Schwartz</div>
<div><br>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Traminer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Traminer-users@lists.r-forge.r-project.org">Traminer-users@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>Traminer-users mailing list<br><a href="mailto:Traminer-users@lists.r-forge.r-project.org">Traminer-users@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users</blockquote></div><br></div></body></html>