Here's my code

library(sound);
q1<-loadSample(" path to wav");
q2<-loadSample("path to wav");
q3<-loadSample(" path to wav");
m1<-read.table("txt",header=FALSE);
m2<-read.table("txt",header=FALSE);
m3<-read.table("txt",header=FALSE);
layout(matrix(c(1,2,3,4,5,6), 6, 1, byrow = TRUE));
par(mar = c(0.6,4,2,4));
plot.Sample(q1,xlab="",ylab="",xaxloc=3);
title(ylab="Waveform",cex.lab=1.5);
par(las=1);mtext("(a)",4,line=1,cex=1.5);
mtext("/she/    /had//your//dark//suit/   /in/  /grea//sy//wash/ /wa//ter/
/all/     /year/",1,line=0.8,cex=1,adj=0.3);
par(mar
=c(0.6,4,2,4));plot(m1$V1[1:1200],labels=F,tcl=0,xlab="",ylab="",type="l",xlim=c(50,1150));
axis(2);axis(1);
par(las=1);
mtext("(b)",4,line=1,cex=1.5);
abline(v=200);
title(ylab="Group Delay",cex.lab=1.5);
par(mar =
c(0.6,4,2,4));plot.Sample(q2,xlab="",ylab="",xaxloc=3);title(ylab="Waveform",cex.lab=1.5);par(las=1);mtext("(c)",4,line=1,cex=1.5);
mtext("/she//had//your//dark/   /suit/      /in/  /grea//sy//wash/
/wa//ter/   /all/     /year/",1,line=0.8,cex=1,adj=0.5);
par(mar
=c(0.6,4,2,4));plot(m2$V1[1:850],labels=F,tcl=0,xlab="",ylab="",type="l",xlim=c(30,780));axis(2);axis(1);par(las=1);mtext("(d)",4,line=1,cex=1.5);title(ylab="Group
Delay",cex.lab=1.5);
abline(v=200)


On Wed, Jul 1, 2009 at 10:55 PM, Greg Snow <greg.s...@imail.org> wrote:

> How are you creating the plots before adding the line?  This sounds like
> you may be mixing graphics types (creating the plots with grid graphics
> (lattice or ggplot2) then using abline from the base graphics system) or
> using a plot function that plays with the graphics settings and leaves them
> in a different state from when the plotting was done (filled.contour is one
> such function).
>
> If you can show us the code that you are seeing the problem with, then it
> will be easier for us to help.
>
> --
> Gregory (Greg) L. Snow Ph.D.
> Statistical Data Center
> Intermountain Healthcare
> greg.s...@imail.org
> 801.408.8111
>
>
> > -----Original Message-----
> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> > project.org] On Behalf Of rajesh j
> > Sent: Wednesday, July 01, 2009 11:07 AM
> > To: r-help@r-project.org
> > Subject: [R] abline going out of bounds
> >
> > Hi,
> > I have a multiplot of 6 rows and 1 column.I need to draw vertical lines
> > in
> > each plot.However when I use abline(v=locator(1)$x) in some plots the
> > line
> > only comes for half the box and it goes beyond the box in others.I
> > suspect
> > this has something to do with the margins.any help?
> >
> > --
> > Rajesh.J
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-
> > guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>



-- 
Rajesh.J

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to