<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Jane,<br>
<br>
I tried to reproduce the problem by creating an artificial sequence
data set and a clustering variable with the same characteristics as
yours:<br>
<br>
<tt>library(TraMineR)<br>
<br>
co.fac <- rep(paste("Gr",1:8, sep=""), 1000) <br>
ex <- seqgen(4000, 120, 1:10)<br>
Org.seq <- seqdef(ex)<br>
<br>
## mean time plot<br>
seqmtplot(Org.seq, group=co.fac)<br>
</tt><br>
The code above works perfectly both on Linux (R 2.10) and Windows (R
2.12). You can try it on your computer. If you get an error with
this code, could you tell me which R and TraMineR versions you use ?<br>
<br>
Moreover I see an error in your "seqrplot" code :<br>
<br>
<font size="2">seqrplot(Org.seq, group = co.fac, co.fac, border=NA)<br>
<br>
</font>You have to provide a distance matrix (created with
"seqdist()") for plotting representative sequences, and instead you
pass "co.fac" again. Your code should look like this (replace
"my.dist.matrix" by the name of your distance matrix):<br>
<br>
<font size="2">seqrplot(Org.seq, group = co.fac, dist.matrix=
my.dist.matrix , border=NA)</font><br>
<br>
Sometimes, if a graphic window is open and an error occurs with the
plotting function, you have to close the graphic window before
running the corrected code again.<br>
<br>
Let me know if this is the solution to your problem.<br>
<br>
Best,<br>
Alexis.<br>
<br>
<br>
<br>
Le 08. 03. 11 21:08, Jane K. Ohgami a écrit :
<blockquote
cite="mid:E42C05C67BC8AE4099E2DE22EC0A3C3A6FF79B@LAW-BE3.law.georgetown.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
6.5.7654.12">
<title>seqrplot: Error in plot.new() : figure margins too large</title>
<!-- Converted from text/plain format -->
<p><font size="2">I am new to TraMineR and have what is probably a
very basic question regarding plot/graphing commands for
cluster analysis.<br>
I am analyzing career transitions and my data set consists of<br>
<br>
[>] 3842 sequences with 10 distinct events/states<br>
[>] 2590 distinct sequences<br>
[>] min/max sequence length: 120/120<br>
<br>
Trying to exercise the following syntax:<br>
seqmtplot(Org.seq, group = co.fac, border=NA) or<br>
seqrplot(Org.seq, group = co.fac, co.fac, border=NA)<br>
<br>
I get the following error message:<br>
>Error in plot.new() : figure margins too large<br>
<br>
I have unsuccessfully tried to adjust for this so would
appreciate any suggestions. Basically I need to figure out how
my 8 clusters break down. Any suggestions/advice would be
greatly appreciated. Thank you!</font></p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</body>
</html>