If you want to produce some nice maps (or analyze further your data outside R), 
I
suggest you to export the probability surface (as raster), as well.
You can use something like (you have to work a little bit on the code, i am
copying it from a longer function):

asc<-ud[[i]][[1]]
res <- asc2spixdf(asc)
writeGDAL(res, paste(path,name, sep=""), drivername = "GTiff", type = "Float32")

Ferdi

>----------------------------------------------------------------------
>
>Message: 1
>Date: Tue, 24 Nov 2009 12:17:16 -0500
>From: Corrie Curtice [email protected]>
>Subject: [AniMov] Exporting kernel home range utilization distribution
>       to an   ESRI shapefile
>To: [email protected]
>Message-ID:
>       [email protected]>
>Content-Type: text/plain; charset=ISO-8859-1
>
>Hello,
>
>Is there a straightforward method for exporting a kernel home range
>utilization distribution produced by kernelUD to an ESRI shapefile?  I
>have the following code:
>
>xy
>id
>kud
>
>I get a nice picture of the kernel home range utilization distribution
>with contours.  I want to create my maps in ArcMap (I'm not that good
>with maps in R yet), so I'd like to export each homerange UD as an
>ESRI shapefile, keeping the contour information so I can color ramp it
>appropriately and do some analysis in ArcMap.   This is what I think
>I'm supposed to do, from reading
>https://wiki.faunalia.it/dokuwiki/doku.php\?id=public:animove_howto:
>
>kver
>spol 
>df 
>spdfBaja 
>writeOGR(spdfBaja,paste(td,"R-Output/Shapefiles",sep=""),"bajaUD","ESRI
>Shapefile")
>
>But I think this only gets me one contour level (95%), right?  Once I
>get that into ArcMap it's just a single polygon. It doesn't look like
>getverticieshr takes a list of levels, just one. Do I need to repeat
>this and glue them together for all the levels? Is there a different /
>better way to do this?
>
>Also, somewhat related, I'd like to get my projection information into
>the SpatialPolygon object, but it's created in the kver2spol
>function... is there a way to set the CRS still?
>
>Thanks for any help or pointers.
>
>Corrie
>--
>Corrie Curtice
>Research Associate
>Marine Geospatial Ecology Lab
>Nicholas School of the Environment, Duke University
>http://mgel.env.duke.edu
>em: [email protected]
>
>
>------------------------------
>
>_______________________________________________
>AniMov mailing list
>[email protected]
>http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
>
>
>End of AniMov Digest, Vol 50, Issue 10
>


---- 
Área de Clientes Clix – Toda a gestão dos seus serviços online! 
http://cliente.clix.pt/. 
_______________________________________________
AniMov mailing list
[email protected]
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov

Reply via email to