<div dir="ltr"><div><div>Hi Gilbert,<br><br></div>Thank you for your response.  After more experimenting, I have found that (as suspected) the error must be on my side.  I am not sure exactly what I did wrong.  I think my mistake was either a sloppy use of the aggregation feature in the weighted cluster package or an inappropriate use of the subset() function when I created the separate data set.  In any case, I now get sequence index and distribution plots that look the same whether I use the group option or make the plots separately after sub-setting the data.<br>
<br></div>Jeremy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 6:00 AM, <a href="mailto:traminer-users-request@lists.r-forge.r-project.org">traminer-users-request@lists.r-forge.r-project.org</a> <span dir="ltr"><<a href="mailto:traminer-users-request@lists.r-forge.r-project.org" target="_blank">traminer-users-request@lists.r-forge.r-project.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Traminer-users mailing list submissions to<br>
        <a href="mailto:traminer-users@lists.r-forge.r-project.org">traminer-users@lists.r-forge.r-project.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:traminer-users-request@lists.r-forge.r-project.org">traminer-users-request@lists.r-forge.r-project.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:traminer-users-owner@lists.r-forge.r-project.org">traminer-users-owner@lists.r-forge.r-project.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Traminer-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: plots with group option vs separate plots (Gilbert Ritschard)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 15 Jan 2014 15:35:34 +0000<br>
From: Gilbert Ritschard <<a href="mailto:Gilbert.Ritschard@unige.ch">Gilbert.Ritschard@unige.ch</a>><br>
To: Users questions <<a href="mailto:traminer-users@lists.r-forge.r-project.org">traminer-users@lists.r-forge.r-project.org</a>><br>
Subject: Re: [Traminer-users] plots with group option vs separate<br>
        plots<br>
Message-ID:<br>
        <<a href="mailto:66ABD43696E3DB4687E0BB396A76E5F149F8AA@golf.isis.unige.ch">66ABD43696E3DB4687E0BB396A76E5F149F8AA@golf.isis.unige.ch</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Jeremy,<br>
<br>
Thank you for your question. Could you provide a reproducible working example? Indeed you are right, you should get the same plot in both cases. You do not provide enough information, however, to allow identifying the source of the problem.<br>

<br>
Your question certainly is of interest for many TraMineR users and future users.  I would therefore suggest you post your question on StackOverflow (see <a href="http://mephisto.unige.ch/traminer/contrib.shtml" target="_blank">http://mephisto.unige.ch/traminer/contrib.shtml</a>) using the "traminer" tag which is searchable, unlike this r-forge list.<br>

<br>
Best.<br>
Gilbert<br>
<br>
<br>
<br>
From: <a href="mailto:traminer-users-bounces@lists.r-forge.r-project.org">traminer-users-bounces@lists.r-forge.r-project.org</a> [mailto:<a href="mailto:traminer-users-bounces@lists.r-forge.r-project.org">traminer-users-bounces@lists.r-forge.r-project.org</a>] On Behalf Of Jeremy Reynolds<br>

Sent: Monday, January 13, 2014 22:09<br>
To: <a href="mailto:traminer-users@lists.r-forge.r-project.org">traminer-users@lists.r-forge.r-project.org</a><br>
Subject: [Traminer-users] plots with group option vs separate plots<br>
<br>
Hello,<br>
I have been making sequence plots, and I seem to be getting very different results when I use the "group" option of the seqdplot or seqIplot command than when I draw separate plots for each subgroup.<br>
After creating a sequence object and performing optimal matching using PAM, I have chosen a 4 cluster solution.  I then create a single plot that shows the distribution across states in each of the 4 clusters like this:<br>

<br>
seqdplot(seq.hc, group = pam5vs$clustering$cluster4, border = NA, title="pam5vs")<br>
If I subset the data and make a separate plot for one of the 4 clusters as in the code below, the N matches the results above (the total N and the N across the states), but I get a very different impression of how the cases are distributed across the states in the two graphs.  Am I doing something wrong?  I would be happy to provide more detail if needed.<br>

Thanks,<br>
<br>
Jeremy<br>
<br>
cluster4 <- subset(bhps, pam5vs$clustering$cluster4==(6875))<br>
seq.cluster4 <- seqdef(cluster4 [4:21], labels = c("M", "S", "F", "O", "U" ))<br>
seqdplot(seq.cluster4, border = NA, title="pam5vs cluster 6875")<br>
<br>
--<br>
********************<br>
Dr. Jeremy Reynolds<br>
Associate Professor<br>
Undergraduate Coordinator<br>
Department of Sociology<br>
116 Baldwin Hall<br>
University of Georgia<br>
Athens, GA 30602-1611<br>
Phone: (706) 583-8072<br>
Web: <a href="http://uga.edu/soc/people/faculty/reynolds_jeremy.php" target="_blank">http://uga.edu/soc/people/faculty/reynolds_jeremy.php</a><br>
Fax: <a href="tel:%28706%29%20542-4320" value="+17065424320">(706) 542-4320</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20140115/aacf6cad/attachment-0001.html" target="_blank">http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20140115/aacf6cad/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<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>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users</a><br>
<br>
End of Traminer-users Digest, Vol 37, Issue 3<br>
*********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">********************<br>Dr. Jeremy Reynolds<br>Associate Professor<br>Undergraduate Coordinator<br>Department of Sociology<br>116 Baldwin Hall<br>University of Georgia<br>
Athens, GA 30602-1611<br>Phone: (706) 583-8072<br>Web: <a href="http://uga.edu/soc/people/faculty/reynolds_jeremy.php" target="_blank">http://uga.edu/soc/people/faculty/reynolds_jeremy.php</a><br>Fax: (706) 542-4320</div>

</div>