mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
This commit: Deletes Example scripts Replaces Example scripts with more up to date versions Adds general categories for r scripts: Basic statistics, Vector processing, Raster processing and Point pattern analysis adds help files to all r scripts Adds a groups of r scripts entitled Home range analysis, that includes Kernel href, LSCV Kernel, Minimum convex polygon, single linkage cluster analysis and characteristic hull method, using adehabitatHR() Adds the following R scripts contributed by Yury Ryabov ( riabovvv(at)gmail.com ): Advanced raster histogram, Monte carlo spatial randomness, Relative distribution (distance covariate), Relative distribution (raster covariate),
13 lines
304 B
R
13 lines
304 B
R
##Home Range Analysis=group
|
|
##showplots
|
|
##Layer=vector
|
|
##Field=Field Layer
|
|
##Percentage=number 10
|
|
##Home_ranges=Output vector
|
|
library(adehabitatHR)
|
|
uu<-clusthr(Layer[,Field])
|
|
Home_ranges<-getverticeshr(uu,percent=Percentage)
|
|
ii <- MCHu2hrsize(uu, percent=seq(50, 100, by=5))
|
|
par(mar=c(2,2,2,2))
|
|
plot(ii)
|