<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Jane,<br>
<br>
The problems is that the margins of your plot are too large and that
there is not enough space to plot it (and to plot what is inside the
margins). This error appears sometimes on windows if your plot
window is too small. You may try to maximize it before plotting.
Another solution would be to plot into a pdf with an appropriate
size (maybe try several values of width and height)<br>
<br>
pdf(file="myplot.pdf", width=20, height=20)<br>
seqmtplot(Org.seq, group=co.fac)<br>
dev.off()<br>
<br>
Finally, another solution would be to reduce the margins using the
"par" command (see the help of "par" for more details) for instance:<br>
<br>
par(mar = c(1,1,1,1))<br>
seqmtplot(Org.seq, group=co.fac)<br>
<br>
Let us know if it fixed your problem.<br>
All the best,<br>
<br>
Matthias Studer<br>
<br>
Le 09.03.2011 16:27, Alexis Gabadinho a écrit :
<blockquote cite="mid:4D779C79.5040407@unige.ch" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
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=""), 500) <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=windows-1252">
<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 moz-do-not-send="true" 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 moz-do-not-send="true" 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>
<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>
</body>
</html>