## Not run:
# # create simulated data
# P <- rbind(1:10 + rnorm(10), seq(from=10,to=1) + rnorm(10))
#
# # saved as PDF since figure margins are often too large for the null device with this function
# # and the null device may also have trouble with the overlay
# pdf('Test.pdf', width=10)
# plotSmoothPatterns(P=P, x=rep(seq(from=1,to=10,by=2),each=2), breaks=3, breakStyle=c(F,T,T), plotPTS=T)
#
# # demonstrating the overlay of the plot
# plotSmoothPatterns(P=P, x=rep(seq(from=1,to=10,by=2),each=2), breaks=c(0.992,3.660,6.340,9.010), breakStyle=c(F,T,T), plotPTS=F, add=T, lineCol='red')
# dev.off()
# ## End(Not run)
Run the code above in your browser using DataLab