Hi Zhongyi, I must confess I not understood completely what you need, but...
Tau<-seq(0.05,0.95,0.05); Pi <- seq(0.19,0.01,-0.01); par(cex.axis=0.8,ps=9,mar=c(1.5,1,0.5,1), oma=c(1,1,0.2,1) ,tck=-0.01); plot(Tau,Pi, type='l', xlab="Tau",ylab="Pi",col=4, xaxt="n", yaxt="n"); axis(1,labels=F) axis(1,line=-1, lwd=0) axis(2,labels=F) axis(2,line=-0.5, lwd=0) mtext("x_txt",side=1, line=0.5) mtext("y_txt",side=2, line=1.2) cheers milton On Tue, Mar 16, 2010 at 12:28 AM, Zhongyi Yuan <zhongyi-y...@uiowa.edu>wrote: > Dear R users: > > I am drawing a graph with the following code: > > Tau<-seq(0.05,0.95,0.05); > Pi <- seq(0.19,0.01,-0.01); > par(cex.axis=0.8,ps=9,mar=c(1.5,1,0.5,1), oma=c(1,1,0.2,1) ,tck=-0.01); > plot(Tau,Pi, type='l', xlab="Tau",ylab="Pi",col=4); > > I want to make the graph take as little space as possible. Here I run into > two problems. One is that the labels are gone, the other is the scale > numbers of axises are a little too far from my axises. Can anyone help me > with this? I am new to graphics and have spent a lot of time on "par" but > still not yet got it. > Thanks. > > best, > Zhongyi > > [[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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[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.