<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear Alois,<br>
    <br>
    I will use the following example (taken from ?seqtree)<br>
    <br>
    <pre>library(TraMineR)
data(mvad)

## Defining a state sequence object
mvad.seq <- seqdef(mvad[, 17:86])

## Building a seqtree using a specified distance matrix
mvad.dhd <- seqdist(mvad.seq, method="DHD")
seqt <- seqtree(mvad.seq~ male + Grammar + funemp + gcse5eq + fmpr + livboth,
    data=mvad, R = 1000, diss=mvad.dhd)
</pre>
    <br>
    <br>
    seqtreedisplay works in the same way as seqplot (difference are
    explained in ?seqtreedisplay). So you may use type="f" to plot the
    most frequent sequences (or all). You can set the following options
    <br>
        space=0 (no blank space between sequences)<br>
        border=NA (no border)<br>
        tlim = 0 (plot all sequence, if you set tlim=1:5, then the five
    most frequent one will be potted)<br>
    <br>
    This ends up with the following code:    <br>
    seqtreedisplay(seqt, type="f", space=0, border=NA, tlim=0)<br>
    <br>
    I think that there are other way to order sequence index plot that
    produce much more readable output. For instance, you may use the
    first dimension of an MDS.<br>
    <br>
    mds <- cmdscale(mvad.dhd, k=1)<br>
    <br>
    The sorting of the sequence in index-plot (type="I") is done through
    the sortv argument<br>
    <br>
    seqtreedisplay(seqt, type="I", sortv=mds)<br>
    <br>
    <br>
    Hope this helps,<br>
    <br>
    Matthias Studer<br>
    <br>
    Le 15.02.2012 16:44, Alois Ganter a écrit :
    <blockquote
      cite="mid:001d01ccebf8$a2beece0$e83cc6a0$%25ganter@uni-due.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Nur Text Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.NurTextZchn
        {mso-style-name:"Nur Text Zchn";
        mso-style-priority:99;
        mso-style-link:"Nur Text";
        font-family:Consolas;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
      <div class="Section1">
        <p class="MsoPlainText"><span lang="EN-US">How can I generate a
            sequence tree that
            contains sequence index plots with sequences arranged in
            descending/ascending frequency
            order? Stata has the egen rank () command to compile a
            sequence index plots this
            way. How does it work with seqtreedisplay()?<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US">Thanks for your help.<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US">Best,<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US">Alois<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US">Mit freundlichen Grüßen<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:
              "Arial","sans-serif";color:#1F497D"
              lang="EN-US">_______________________________________________________________<o:p></o:p></span></b></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D"><img
              id="Bild_x0020_4"
              src="cid:part1.06050007.06030106@unige.ch"
              alt="MSM_groß.jpg" height="60" width="169"></span><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Dipl.-Volksw.
              Alois Ganter<o:p></o:p></span></b></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Universität
            Duisburg-Essen, Campus Duisburg</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Mercator
            School of Management - Fachbereich Betriebswirtschaft</span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Department
            Management and Marketing</span><span style="color:#1F497D">
          </span><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Lehrstuhl
            für Organisations- und Personalökonomie</span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Lotharstr.
            65 / LC 015b</span><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">47057
            Duisburg</span><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Tel.:
            +49 (0)203-379 2874 </span><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Fax:
            +49 (0)203-379 1402</span><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">E-Mail:
            <a moz-do-not-send="true"
              href="mailto:achim.hecker@uni-due.de"><span
                style="color:#1F497D">alois.ganter@uni-due.de</span></a></span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D">Homepage:
          </span><span style="font-size:7.5pt;
font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US"><a moz-do-not-send="true"
              href="http://www.msm.uni-due.de/organisation"><span
                style="color:#1F497D">u</span><span
                style="color:#1F497D" lang="DE">due.de/ganter</span></a></span><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
      </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>
  </body>
</html>