Skip to content
Back to formatted view

Raw Message

Message-ID: <18879.25532.271054.881400@stat.math.ethz.ch>
Date: 2009-03-17T08:47:56Z
From: Martin Maechler
Subject: plot lines at 0,0 axis
In-Reply-To: <20090317104249.oykt4c48wkoscscg@webmail.slingshot.co.nz>

>>>>> "PaCo" == p connolly <p_connolly at slingshot.co.nz>
>>>>>     on Tue, 17 Mar 2009 10:42:49 +1300 writes:

    PaCo> Quoting Mohan Singh <Mohan.Singh at ucd.ie>:
    >> Hii
    >> 
    >> I am trying to plot lines at (0,0) axis where my scatterplot goes
    >> between positive n negative values for x and y axis
    >> 
    >> i can plot point using points(0,0) but if i want to draw lines
    >> along it, can't seem to get it right

    PaCo> ?abline

    PaCo> maybe abline(h = 0)
    PaCo>       abline(v = 0)

Yes.  And one  abline() call is sufficient :

 abline(h = 0, v = 0)

Martin Maechler, ETH Zurich