x <- seq(0, 2*pi, length=100) # x data
y <- sin(x) # y data
x.x <- seq(0, 2*pi, length=5) # x tick positions
x.s <- c("0", "p/2", "p", "3p/2","2p" ) # x tick labels
plot(x, y, type="l", xlab="", ylab="", xaxs="s", yaxs="s", axes=F)
axis(side=2, font=13)
axis(side=1, at=x.x, labels=F)
mtext(side=1, font=13, at=x.x, text=x.s, line=1, adj=0.5)
printgraph(file="demotrig.ps")
Does this work in WIMPland?
I would like to know, since we may be forced to `upgrade' eventually :(
Joseph Collins
Mathematical Statistician
US Army Research Laboratory
e-mail: collins@arl.mil
-------------------------------------------------------------------------
On Fri, 5 Jun 1998, Prof Brian D Ripley wrote:
> On Fri, 5 Jun 1998, Bill Venables wrote:
>
> > Erin Hodgess writes:
> >
> > > If I want to plot a sine or cosine curve, is there a way to
> > > have \pi on the x-axis, please?
> >
> > Yes, but like so many things now, it depends on whether you are
> > in the clutches of Bill Gates, Microsoft, S-PLUS 4.x and all that
> > WIMPy stuff or whether you are still relatively free of it... :-)
> >
> > 1. With S-PLUS 4.x (I believe) there are now quite extensive
>
> For a graphsheet device. See page 10 of the V&R S-PLUS 4.x complements
>
> > 3. For LaTeX (or plain TeX) + dvips users there is effectively a
>
> or other postscript output processors, e.g. DVIPSone
>
> > complete solution to the general problem of placing labels
> >
> > It's called psfrag. There several ways of using it, but the
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news