## Not run:
# # 100 points from a circle at c(0,0) with radius=200
# a<-calculateCircle(0,0,200,100)
# plot(a[,1],a[,2],xlim=c(-250,250),ylim=c(-250,250))
# par(new=T)
# # 12 points from a circle at c(0,0) with radius=190, points between 0 and 90
# #degrees
# a<-calculateCircle(0,0,190,12,c(0,90))
# plot(a[,1],a[,2],xlim=c(-250,250),ylim=c(-250,250),col='red')
# par(new=T)
# # 12 points from a circle at c(0,0) with radius=180, points between 0 and 180
# #degrees, uniform random distribution
# a<-calculateCircle(0,0,180,12,c(0,180),TRUE)
# plot(a[,1],a[,2],xlim=c(-250,250),ylim=c(-250,250),col='green')
# par(new=T)
# # 12 points from a circle at c(0,0) with radius=170, points between 0 and 180
# #degrees, normal random distribution
# a<-calculateCircle(0,0,170,12,c(0,180),TRUE,rnorm)
# plot(a[,1],a[,2],xlim=c(-250,250),ylim=c(-250,250),col='blue')
# par(new=T)
# # 12 points from a circle at c(0,0) with radius=200, points between 0 and 180
# #degrees, positioned by uniform random distribution, noise=normal random
# #distribution with sd=10
# a<-calculateCircle(0,0,200,12,c(180,360),TRUE,noiseFun=function(x)
# (x+rnorm(1,mean=0,sd=10)))
# plot(a[,1],a[,2],xlim=c(-250,250),ylim=c(-250,250),col='orange')
# ## End(Not run)
Run the code above in your browser using DataLab