Re: [R] plot Ticks

2009-01-27 Thread John Kane
Will something like this do what you want?

x - 1:10
y=rnorm(10)
plot(x,y,xaxt=n)
axis(1,at= seq(.5,10,.5))


--- On Tue, 1/27/09, mau...@alice.it mau...@alice.it wrote:

 From: mau...@alice.it mau...@alice.it
 Subject: [R] plot Ticks
 To: r-h...@stat.math.ethz.ch
 Received: Tuesday, January 27, 2009, 9:13 AM
 Is there a way to force the number of ticks along an axis ?
 I read the on-line documentation and tried many
 combinations of all available parameters from functions
 par(), axTicks(), axis(), plot() ... but no luck !
 
 Thank you very much,
 Maura
 
 
 tutti i telefonini TIM!
 
 
   [[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.


  __
[[elided Yahoo spam]]

__
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.


Re: [R] plot Ticks

2009-01-27 Thread baptiste auguie

Try this:


plot(1:20)
axis(3, at=seq(0,20), label=FALSE)



A better description of your plot would be useful if ?axis is not  
enough to help you out.


hope this helps,

baptiste

On 27 Jan 2009, at 14:13, mau...@alice.it wrote:


Is there a way to force the number of ticks along an axis ?
I read the on-line documentation and tried many combinations of all  
available parameters from functions

par(), axTicks(), axis(), plot() ... but no luck !

Thank you very much,
Maura


tutti i telefonini TIM!


   [[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.


_

Baptiste AuguiƩ

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag

__
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.


Re: [R] plot Ticks

2009-01-27 Thread Thomas Roth (geb. Kaliwe)

you could set them manually, if thats what you're looking for

plot(1:10, axes = F)
axis(1, at = seq(1,10 , length = 3))

mau...@alice.it schrieb:

Is there a way to force the number of ticks along an axis ?
I read the on-line documentation and tried many combinations of all available 
parameters from functions
par(), axTicks(), axis(), plot() ... but no luck !

Thank you very much,
Maura


tutti i telefonini TIM!


[[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.




__
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.