[R] lattice: axis ticks, axis alignment and remove axis from plot
Deepayan Sarkar
deepayan.sarkar at gmail.com
Fri Jun 19 19:31:42 CEST 2009
On 6/18/09, Katharina May <may.katharina at googlemail.com> wrote:
> Hi Sorn,
>
> thanks for your code. I guess I didn't really made myself very clear.
> What I sort of looking for is a xyplot with both the x axis at the bottom
> and y axis at the
> left going through 0, but continuing in the positive and negative area
> (forming a kind of cross
> like e.g.
> http://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Erf_plot.svg/600px-Erf_plot.svg.png
>
> I'm not sure if this possible at all or if I just have to add to reference
> lines at x=0 and y =0 as a
> workaround even though not fully satisfying...?
Sounds like you want something similar to
xyplot(..., scales = list(draw = FALSE))
or
xyplot(..., scales = list(y = list(draw = FALSE)))
(if you only want to omit the y-axis).
As for drawing the axis inside, you will need to do that explicitly
using a panel function.
-Deepayan
More information about the R-help
mailing list