[Traminer-users] plots with group option vs separate plots

Pierre Blavier pit.blavier at gmail.com
Sun Mar 23 18:01:51 CET 2014


Hi everybody,

here is a plot from the TramineR seqiplot command. It gives the first 10
sequences of my dataset, all my sequences are 21 period-long. Does anyone
know how to reduce the length of the x-axis to have a length of the longest
sequence, i.e. 21 periods ? It's probably simple but i could not fix it. I
have the same problems for other plots

Thanks, Best,

Pierre







2014-01-15 16:35 GMT+01:00 Gilbert Ritschard <Gilbert.Ritschard at unige.ch>:

>  Hi Jeremy,
>
>
>
> 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.
>
>
>
> Your question certainly is of interest for many TraMineR users and future
> users.  I would therefore suggest you post your question on StackOverflow
> (see http://mephisto.unige.ch/traminer/contrib.shtml) using the
> "traminer" tag which is searchable, unlike this r-forge list.
>
>
>
> 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 *Jeremy
> Reynolds
> *Sent:* Monday, January 13, 2014 22:09
> *To:* traminer-users at lists.r-forge.r-project.org
> *Subject:* [Traminer-users] plots with group option vs separate plots
>
>
>
> Hello,
>
> 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.
>
> 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:
>
>
> seqdplot(seq.hc, group = pam5vs$clustering$cluster4, border = NA,
> title="pam5vs")
>
> 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.
>
> Thanks,
>
> Jeremy
>
>
> cluster4 <- subset(bhps, pam5vs$clustering$cluster4==(6875))
> seq.cluster4 <- seqdef(cluster4 [4:21], labels = c("M", "S", "F", "O", "U"
> ))
>
> seqdplot(seq.cluster4, border = NA, title="pam5vs cluster 6875")
>
> --
>
> ********************
> Dr. Jeremy Reynolds
> Associate Professor
> Undergraduate Coordinator
> Department of Sociology
> 116 Baldwin Hall
> University of Georgia
> Athens, GA 30602-1611
> Phone: (706) 583-8072
> Web: http://uga.edu/soc/people/faculty/reynolds_jeremy.php
> Fax: (706) 542-4320
>
> _______________________________________________
> 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/20140323/32b7bb38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example of the problem.pdf
Type: application/pdf
Size: 11254 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20140323/32b7bb38/attachment.pdf>


More information about the Traminer-users mailing list