After selecting a relevant range of shell values, plot them and calculate the weighted mean and variance.
shells.mean(
dat,
feeding = c(),
draw = TRUE,
distance = FALSE,
pch = 20,
col.mn = 1,
lty.mn = 2,
col.sd = rgb(0, 0, 0, 0.1)
)
A plot of the dR values, as well as the weighted mean (vertical line) and (weighted) error (rectangle).
The data, as returned from the function 'plot.shells'.
Whether or not to select a specific feeding behaviour. Defaults to empty (no selection of feeding behaviour).
Whether or not to draw the values.
Plot the dR values according to their distance (if you've used find.shells; assumes that 'dat' has a final column with the distances).
Symbol to be plotted. Defaults to a closed circle (pch=20
).
Colour for the weighted mean. Defaults to black, col.mn=1
.
Line type for the weighted mean. Defaults to dashed, lty.mn=2
.
Colour of the rectangle of the error. Defaults to transparent grey, col.sd=rgb(0,0,0,.1)
.
N_UK <- map.shells(53, -11, 60, 2, mapsize="small")
shells.mean(N_UK)
nearby <- find.shells(0,56,20) # somewhere in Scotland
shells.mean(nearby, distance=TRUE) # distance matters
Run the code above in your browser using DataLab