<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Gina,</p>
<p>Thanks for heads-up on the plot error message. Yes that's a
fairly common error message with RStudio, and is usually caused by
the plot window being too small. In fact that's the only time I've
ever encountered it. Very weird to see it in Rmd output. If
increasing the size of the plot window doesn't work, something
else might be going on. <br>
</p>
<p>I just did a test of plotting in RStudio and this worked fine:</p>
<p><tt>mycon <-
url(<a class="moz-txt-link-rfc2396E" href="http://tlocoh.r-forge.r-project.org/toni.n5775.2005-08-22.2006-04-23.lxy.RData">"http://tlocoh.r-forge.r-project.org/toni.n5775.2005-08-22.2006-04-23.lxy.RData"</a>)</tt><tt><br>
</tt><tt>load(mycon)</tt><tt>; </tt><tt>close(mycon)</tt><tt><br>
</tt><tt>plot(toni.lxy)</tt><br>
</p>
<p>See if that works for you.</p>
<p>Something else you could try would be to run dev.new() before you
run a plot command. This will open a new plot window and make it
active for subsequent plot commands. To print in RStudio again,
run dev.off() or just close the window.</p>
<p>If none of the above helps, there might be something else going
on, maybe a DPI setting or something like that. If I can reproduce
the problem I could look more closely (but I won't have time to
look at it until probably June). You can also look at the code in
the plot functions and comment out any lines that deal with
margins. Or you could also simply plot the points with your own
commands - under the hood the locations are simply a
SpatialPointsDataFrame object and the hulls and isopleths are
simply SpatialPolygonsDataFrame objects (see the Vignette on the
data structure).<br>
</p>
<p>Cheers,<br>
Andy<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/3/2019 6:51 AM, Gina Joue wrote:<br>
</div>
<blockquote type="cite"
cite="mid:09914e23-8e46-f85f-6a4f-e8fea6426ce7@uke.de">
<pre class="moz-quote-pre" wrap="">Hi,
I know the error
----------------------------------------------
Error in plot.new(): figure margins too large
-----------------------------------------------
is probably a problem that is not specific to the tlocoh package, but
I'm getting it only when plotting lxy objects, so I thought perhaps
others using the package might have come across this and know how to
deal with it. I don't get it with hist() but so far with plot(),
lxy.plot.freq(), and lxy.plot.sfinder().
I've tried the following suggestions posted in other R forums:
* set the margins smaller than what it is set at
* restarted the graphics device with dev.off() before plotting
* increased the size of the plot window
* Actually I'm running plots within R-markdown, which apparently should
not be prone to this error because it's configured to plot to full paper
size (is that right?), but in any case, I've tried it within the Rmd
file with that panel at maximum size as well as at the console with the
plot window at max)
Help?
Thanks in advance,
Gina
--
_____________________________________________________________________
Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | <a class="moz-txt-link-abbreviated" href="http://www.uke.de">www.uke.de</a>
Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Prof. Dr. Dr. Uwe Koch-Gromus, Joachim Prölß, Marya Verdel
_____________________________________________________________________
SAVE PAPER - THINK BEFORE PRINTING
_______________________________________________
Tlocoh-info mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tlocoh-info@lists.r-forge.r-project.org">Tlocoh-info@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font face="Times New Roman, Times, serif">
<strong>T-LoCoH</strong>: A hull-based method for home range
construction and spatiotemporal analysis of movement data.<br>
Lyons, A., Turner, W.C., and WM Getz. 2013. Home Range Plus: A
Space-Time Characterization of Movement Over Real Landscapes. <a
href="http://www.movementecologyjournal.com/content/1/1/2">BMC
Movement Ecology 1:2</a>.<br>
<a href="http://tlocoh.r-forge.r-project.org">http://tlocoh.r-forge.r-project.org</a><br>
<br>
<em>I often get overwhelmed with emails, so if I don't reply to
your email within 5 days, I may have missed it. Please resend.</em>
</font><br>
<br>
</div>
</body>
</html>