x <- seq(0, 4*pi, length = 200)
xy <- data.frame(x = x*100, y = sin(x)*300)
mask <- read.linearmask(data = xy, spacing = 10)
linpop <- sim.linearpopn(mask, 100)
plot(linpop, jitter = 2)
plot(mask)
## thicker band of grey points, dashed line
plot(mask, cex = 2, lty = 2)
## point colour determined by a covariate
plot(glymemask, cex = 2, covariate = 'x', pt.cex = 2)
## point size determined by a covariate
plot(glymemask, cex = covariates(glymemask)$x/50, pch = 21)Run the code above in your browser using DataLab