Re: [R] Axes intercept

2010-07-01 Thread Gavin Simpson
On Wed, 2010-06-30 at 15:24 -0700, Bert Gunter wrote:
 I nominate the below for a Fortune.

Seconded!

G

 
 -- Bert
 
 Bert Gunter
 Genentech Nonclinical Biostatistics
  
 
 
 -Original Message-
 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
 Behalf Of R. A. Bilonick
 Sent: Wednesday, June 30, 2010 3:16 PM
 To: r-help@r-project.org
 Subject: Re: [R] Axes intercept
 
 On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote:
  y=rnorm(100)
  x=abs(y)
  plot(x, y, axes=FALSE)
  axis(1, pos=0)
  axis(2)
  box() 
 
 It's nice to know that R tends to make nice graphics by default. But you
 can have R do not so great graphics (like Excel and other programs that
 make really bad graphics) if you are willing to take the time!
 
 __
 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.

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London  [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

__
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] Axes intercept

2010-06-30 Thread R. A. Bilonick
On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote:
 y=rnorm(100)
 x=abs(y)
 plot(x, y, axes=FALSE)
 axis(1, pos=0)
 axis(2)
 box() 

It's nice to know that R tends to make nice graphics by default. But you
can have R do not so great graphics (like Excel and other programs that
make really bad graphics) if you are willing to take the time!

__
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] Axes intercept

2010-06-30 Thread Bert Gunter
I nominate the below for a Fortune.

-- Bert

Bert Gunter
Genentech Nonclinical Biostatistics
 
 

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of R. A. Bilonick
Sent: Wednesday, June 30, 2010 3:16 PM
To: r-help@r-project.org
Subject: Re: [R] Axes intercept

On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote:
 y=rnorm(100)
 x=abs(y)
 plot(x, y, axes=FALSE)
 axis(1, pos=0)
 axis(2)
 box() 

It's nice to know that R tends to make nice graphics by default. But you
can have R do not so great graphics (like Excel and other programs that
make really bad graphics) if you are willing to take the time!

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


[R] Axes intercept

2010-06-28 Thread KENT V.T.
I have a plot where the values of the y axis go from a positive number to a 
negative number and I want the x axis to intercept at zero rather than at the 
bottom of the y axis, regardless of its value. Can anyone help me to do this?

Thanks in advance

Vivien



Vivien Kent MSc Oxon 
PhD candidate
Evolutionary Anthropology Research Group 
Department of Anthropology 
Durham University 
Dawson Building 
South Road 
Durham 
DH1 3LE 
United Kingdom
Email 1: v.t.k...@durham.ac.uk 
Email 2: vivien.k...@gmail.com
Web: www.graduatejunction.com/academic/vivien_kent


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


Re: [R] Axes intercept

2010-06-28 Thread Robert Baer
- Original Message - 
From: KENT V.T. v.t.k...@durham.ac.uk

To: r-help@r-project.org
Sent: Monday, June 28, 2010 8:28 AM
Subject: [R] Axes intercept


I have a plot where the values of the y axis go from a positive number to a 
negative number and I want the x axis to intercept at zero rather than at 
the bottom of the y axis, regardless of its value. Can anyone help me to do 
this?


?plot
?axis

As a toy example:
y=rnorm(100)
x=abs(y)
plot(x, y, axes=FALSE)
axis(1, pos=0)
axis(2)
box()




Thanks in advance

Vivien



Vivien Kent MSc Oxon
PhD candidate
Evolutionary Anthropology Research Group
Department of Anthropology
Durham University
Dawson Building
South Road
Durham
DH1 3LE
United Kingdom
Email 1: v.t.k...@durham.ac.uk
Email 2: vivien.k...@gmail.com
Web: www.graduatejunction.com/academic/vivien_kent


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


Re: [R] Axes intercept

2010-06-28 Thread jim holtman
try:

plot(..., axes=FALSE)
axis(1, pos=0)

On Mon, Jun 28, 2010 at 9:28 AM, KENT V.T. v.t.k...@durham.ac.uk wrote:
 I have a plot where the values of the y axis go from a positive number to a 
 negative number and I want the x axis to intercept at zero rather than at the 
 bottom of the y axis, regardless of its value. Can anyone help me to do this?

 Thanks in advance

 Vivien



 Vivien Kent MSc Oxon
 PhD candidate
 Evolutionary Anthropology Research Group
 Department of Anthropology
 Durham University
 Dawson Building
 South Road
 Durham
 DH1 3LE
 United Kingdom
 Email 1: v.t.k...@durham.ac.uk
 Email 2: vivien.k...@gmail.com
 Web: www.graduatejunction.com/academic/vivien_kent


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




-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

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