SCM Repository

[synchrony] View of /plot.phase.R
ViewVC logotype

View of /plot.phase.R

Parent Directory Parent Directory | Revision Log Revision Log

Revision 73 - (download) (annotate)
Tue Jan 21 13:33:33 2014 UTC (5 years ago) by tarik
File size: 850 byte(s)
Update description and manual
plot.phase <- function (x, plot.phase=TRUE, at=seq(-pi, by=pi/2, to=pi), len=14,
                        padj=0.7, mod=2, main="", xlab="Phase difference", 
                        ylab="Frequency", col="red", lty=2, lwd=1, ...) {
  if (plot.phase & class(x)=="phase") {
    if (mod==1) {
      b=seq(-pi, pi, length=len)
    else {
      at=seq(0, by=pi/2, to=2*pi)
      labels=paste(expression(f, pi, sep="*"))
      b=seq(0, 2*pi, length=len)
    z=hist(p, plot=FALSE, breaks=b)
    hist(p, breaks=z$breaks, sub="", xaxt="n", xlab="", main=main, ylab=ylab)
    axis(side=1, at=at, labels=labels, padj=padj)
    mtext(side=1, text=xlab, line=3, cex=0.8)
  else {
    stop("No permutation data to plot")
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge