Hi
R Sextante imports data via readogr () and writes them with (library
rgdal). So your function has to accept an input created by readogr() and to
export it as an ouput that writeogr() can write.

After you've done that it's easy to put in Sextante. The instructions made
by Victor are quite clear but I can help if necessary.

Regards



On Fri, Nov 23, 2012 at 4:28 PM, Manuel Spínola <[email protected]>wrote:

> Yes, no problem, but my script is for working in RStudio, I don't know how
> to do it in R SEXTANTE or ManageR.
>
> ##################################
>
> library(adehabitatHR)
>
> the data set is called "mam"
>
> > head(mam)
>               Especie  X.coord Y.coord
> 1    Canis familiaris 322988.0 1212817
> 2 Caluromys derbianus 325730.6 1203590
> 3         Mamifero sp 321659.7 1216665
> 4         Mamifero sp 322918.3 1213156
> 5        Didelphis sp 323609.1 1211597
> 6         Mamifero sp 325512.2 1203657
>
> # con adehabitatHR
>
> xy <- c(mam$X.coord, mam$Y.coord)
> xyspm <- matrix(xy, ncol=2)
> xyspm
> xysp <- SpatialPoints(xyspm)
> plot(xysp, pch = 16, col = "red")
>
> ud <- kernelUD(xysp)
> ud
> image(ud)
>
> # Estimating the home range from the UD
>
> homerange <- getverticeshr(ud)
> class(homerange)
>
> plot(homerange, col = "red")
>
> vud <- getvolumeUD(ud)
> vud
>
> image(vud)
> contour(vud)
>
>
> 2012/11/20 simbamangu <[email protected]>
>
>> Could you share the code here or as a page on the  QGIS wiki how-tos
>> <http://hub.qgis.org/wiki/quantum-gis/Users_Corner#HowTos>  ?
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/Where-is-R-in-QGIS-Sextante-tp5016411p5017669.html
>> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>> _______________________________________________
>> Qgis-user mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
> --
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> [email protected]
> [email protected]
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río<https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
> _______________________________________________
> Qgis-user mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to