Description Usage Arguments See Also Examples
This function generates a graphical representation of a sample
of point-to-nearest-object method, generated by the function
generate.sample.no
.
1 2 3 4 5 | plot(samp, show.sizes = F, show.exps = F, dsf = 1, whole.population = F, pnlines =
T, nnlines = T, ...)
plot.sample.no(samp, show.sizes = F, show.exps = F, dsf = 1, whole.population = F,
pnlines = T, nnlines = T, ...)
|
samp |
sample object (of class 'sample.no´) |
show.sizes |
if TRUE different animal group sizes are shown as dots of different sizes. |
show.exps |
if TRUE different group exposures are shown in different shading. |
dsf |
enlargement factor for group dots. |
whole.population |
if TRUE the whole population will be plotted. Detected animal groups will be shown in red colour, undetected animal groups will be shown in black colour. |
pnlines |
if TRUE the survey points and their nearest objects will be connected with a black line, else there won´t be any line. |
nnlines |
if TRUE the nearest-to-point objects and their nearest neighbour objects (if calculated) will be connected with a red line, else there won´t be any line. |
generate.sample.no
summary.sample.no
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | myreg<-generate.region(x.length = 50, y.width = 80)
mydens <- generate.density()
mypoppars<-setpars.population(myreg, density.pop = mydens,
number.groups = 100, size.method = "poisson",
size.min = 1, size.max = 5, size.mean = 1,
exposure.method = "beta", exposure.min = 2,
exposure.max = 10, exposure.mean = 6,
exposure.shape = 1)
mypop<-generate.population(mypoppars)
mydes <- generate.design.no(myreg, n.points = 4)
mysamp<-generate.sample.no(mypop, mydes, with.neighbours=T)
plot(mysamp) # default plotting
plot(mysamp, show.sizes = T) # show group sizes
plot(mysamp, show.exps = T) # show group exposures
plot(mysamp, dsf = 2) # enlarge dots
plot(mysamp, dsf = 0.3) # reduce dots
plot(mysamp, whole.population = T) # show whole population
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.