# NOT RUN {
A<-c(0,0,0); B<-c(1,0,0); C<-c(1/2,sqrt(3)/2,0); D<-c(1/2,sqrt(3)/6,sqrt(6)/3)
tetra<-rbind(A,B,C,D)
n<-10 #try also n<-20
dat<-runif.tetra(n,tetra)$g #try also dat[,1]<-dat[,1]+1
M<-"CM" #try also M<-"CC"
r<-1.5
plotPEregsTH(dat[1,],r,tetra) #uses the default M="CM"
plotPEregsTH(dat[1,],r,tetra,M)
plotPEregsTH(dat[5,],r,tetra,M)
plotPEregsTH(c(.4,.4,.4),r,tetra,M)
plotPEregsTH(c(.5,.5,.5),r,tetra,M)
plotPEregsTH(dat[1:3,],r,tetra,M)
P1<-c(.1,.1,.1)
plotPEregsTH(rbind(P1,P1),r,tetra,M)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab