From n.b.furey at gmail.com Sun Jan 4 23:33:50 2015 From: n.b.furey at gmail.com (Nathan Furey) Date: Sun, 4 Jan 2015 14:33:50 -0800 Subject: [tlocoh-info] Error trying to add shapefiles or rasters to animation Message-ID: 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: From nicolai.jorgensen at nmbu.no Mon Jan 5 12:16:25 2015 From: nicolai.jorgensen at nmbu.no (=?iso-8859-1?Q?Nicolai_Hermann_J=F8rgensen?=) Date: Mon, 5 Jan 2015 11:16:25 +0000 Subject: [tlocoh-info] Tlocoh-info Digest, Vol 13, Issue 1, Error trying to add shapefiles or rasters to Message-ID: <4daff99906444fb3a453132081c4b587@EXCH-MBX02.NMBU.NO> 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 To: tlocoh-info at lists.r-forge.r-project.org Subject: [tlocoh-info] Error trying to add shapefiles or rasters to animation Message-ID: 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: ------------------------------ _______________________________________________ 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 ******************************************