## Not run:
#
# # simplest example
# #x <- c(0,1,2,3,5,7,9,17,18,20) + rnorm(10)/5
# #y <- c(0,1,2,4,4,4,4,8,9,10) + rnorm(10)/5
# x <- c(0.103, 1.336, 2.036, 2.928, 5.123, 6.738,
# 8.998,17.145,17.960,19.753)
# y <- c(0.152, 0.855, 1.784, 4.072, 4.055, 3.992,
# 4.336, 7.963, 9.238,10.162)
#
# xy.loc <- dloc(x, y, end.segs = 3, pop = 10, max.gen = 10,
# start = 'uniform', plot = 2)
#
# xy.loc <- dloc(x, y, pin.ends = 'top', end.segs = 3,
# pop = 100, max.gen = 5, start = 'lm', plot = 1)
#
# xy.loc <- dloc(x, y)
#
# xy.cloc <- dcloc(x, y, pins = list(x = c(5,10), y = c(4,6)),
# max.gen = 10)
#
# ## End(Not run)
Run the code above in your browser using DataLab