s-news
[Top] [All Lists]

Summary of responses to simple plot question

To: <s-news@lists.biostat.wustl.edu>
Subject: Summary of responses to simple plot question
From: "Kurbat, Matt" <Matt.Kurbat@kmv.com>
Date: Wed, 19 Jun 2002 08:05:08 -0700
Thread-index: AcIXFpR425juDuk1QUK2jdfOcBSvkQANgLdAABVeeQA=
Thread-topic: [S] Plotting parametric survival curves

My question was:
> I would like to make a plot with no numbers on the x-axis at all
> (but with numbers on the y-axis).  For example, I've tried the 
> following, but it does not suppress numbers on the x-axis:
> 
>       xSeq<-1:8
>       ySeq<-1:8
>       plot(xSeq,ySeq)
>       axis(1, ticks=F)
> 
> Does anyone have a suggestion?


Variants of the answers are:

xSeq<-1:8
ySeq<-1:8
plot(xSeq, ySeq, axes=F,xlab="")
# axis(2, ticks=T)
axis(2) 
box()                   # DRAWS A BOX AROUND THE PLOT; ALSO: box(n=1)
# axis.line.render(1)   # INSERTS AN X-AXIS-LINE
axis(1, labels=F)  # draw the x-axis tick marks but no labels
        
xSeq<-1:8
ySeq<-1:8
plot(xSeq,ySeq, xaxt="n")


plot(xSeq, ySeq, axes=F)  # eliminates all axis marks and numbers
axis(side=2, at=(wherever the labels need to go), c(label1, label2, etc.))
                                                         # putS the y-axis on


                                

Thank you to the following people who sent answers
(in order of receipt):

P. Ellis
Klaas Prins
Luciano Molinari
Nick Ellis
Stephen Kaluzny
Shawn Boles
Sven J. Knudsen
Henrik Aalborg Nielsen 
Bill Venables
Jason Connor 
Sean Keenan




Best Regards,
Matt Kurbat


<Prev in Thread] Current Thread [Next in Thread>
  • Summary of responses to simple plot question, Kurbat, Matt <=