data(weeds.all)
label
x
y
distance
Seen
weeds.all
was as follows:data(weeds) # Fudge the data ever so slightly to appease spatstat so the transects don't abut # and all points are contained within the strips. weeds$SignedDistance[weeds$SignedDistance==75]=74.99 weeds$SignedDistance[weeds$SignedDistance==-75]=-74.99 weeds.all=data.frame(label=weeds$Transect, x=(weeds$Transect-1)*150+75 +weeds$SignedDistance, y=floor(runif(dim(weeds)[1])*1200), distance=weeds$Distance, Seen=weeds$Seen) while(any(duplicated(data.frame(x=weeds.all$x,y=weeds.all$y)))) { npts=sum(as.numeric(any(duplicated(data.frame(x=weeds.all$x,y=weeds.all$y))))) weeds.all$y[duplicated(data.frame(x=weeds.all$x,y=weeds.all$y))]= runif(npts)*1200 } save(weeds.all,file="weeds.all.rda")
See weeds
for more details.