[tlocoh-info] Tlocoh-info Digest, Vol 13, Issue 1, Error trying to add shapefiles or rasters to

Nicolai Hermann Jørgensen nicolai.jorgensen at nmbu.no
Mon Jan 5 12:16:25 CET 2015


If you are using RStudio, you sometimes get that error if you don't have enough GUI allocated to the plot tab.

Strange thing though.

Nicolai

-----Original Message-----
From: tlocoh-info-bounces at lists.r-forge.r-project.org [mailto:tlocoh-info-bounces at lists.r-forge.r-project.org] On Behalf Of tlocoh-info-request at lists.r-forge.r-project.org
Sent: 5. januar 2015 12:00
To: tlocoh-info at lists.r-forge.r-project.org
Subject: Tlocoh-info Digest, Vol 13, Issue 1

Send Tlocoh-info mailing list submissions to
	tlocoh-info at lists.r-forge.r-project.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info

or, via email, send a message with subject or body 'help' to
	tlocoh-info-request at lists.r-forge.r-project.org

You can reach the person managing the list at
	tlocoh-info-owner at lists.r-forge.r-project.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Tlocoh-info digest..."


Today's Topics:

   1. Error trying to add shapefiles or rasters to animation
      (Nathan Furey)


----------------------------------------------------------------------

Message: 1
Date: Sun, 4 Jan 2015 14:33:50 -0800
From: Nathan Furey <n.b.furey at gmail.com>
To: tlocoh-info at lists.r-forge.r-project.org
Subject: [tlocoh-info] Error trying to add shapefiles or rasters to
	animation
Message-ID:
	<CAPFMpoh9nLUXaDYW_RiW39JBRhm+-a9QbONE1P904E7P4g3Jkg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Tlocoh!

I am really enjoying the package. I am able to create an animation of my data (fine-scale movements of bull trout in a lake-river outlet), but I run into problems as soon as I try to add shapefiles. I have created a csv file (attached), and when I simply plot my object ("t11.lxy") using the layers list (as noted as "option 2" on page 43), but whenever I try to use the csv file I get the following error:

> lxy.exp.mov(t11.lxy, screen.test=TRUE, max.frames=1,
shp.csv="gis_tlocoh_shapes.csv",
+ layers="water", crop.layers.to.extent=T,
+ title.show=FALSE)
Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
  group length is 0 but data length > 0

I also do not have any luck adding a raster to the background, as shown
below:

Error in plot.new() : figure margins too large In addition: Warning message:
In matrix(col[as.vector(m) * (length(col) - 1) + 1], nrow(m), ncol(m)) :
  data length [740314] is not a sub-multiple or multiple of the number of rows [1568]

Any guidance would be great!

Nathan Furey, PhD Candidate
Pacific Salmon Ecology and Conservation Laboratory Department of Forest and Conservation Sciences University of British Columbia http://nbfurey.wix.com/nathanbfurey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/tlocoh-info/attachments/20150104/10ad9b90/attachment-0001.html>

------------------------------

_______________________________________________
Tlocoh-info mailing list
Tlocoh-info at lists.r-forge.r-project.org
http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tlocoh-info


End of Tlocoh-info Digest, Vol 13, Issue 1
******************************************


More information about the Tlocoh-info mailing list