Bug 1161 - x-axis label in persp()
Summary: x-axis label in persp()
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: old
Hardware: All All
: P5 normal
Assignee: Jitterbug compatibility account
Depends on:
Reported: 2001-11-07 16:07 UTC by Jitterbug compatibility account
Modified: 2017-01-28 18:01 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jitterbug compatibility account 2001-11-07 16:07:22 UTC
From: Rolf Turner <rolf@maths.uwa.edu.au>

If the surface to be plotted by persp() is supplied as
a list, the x-axis label defaults to the name, in the call,
of this list --- which is usually silly.

I would suggest changing the first four lines of
persp.default() (where the x-axis label gets set) from

if (is.null(xlab))
        xlab <- if (!missing(x))
        else "X"


if (is.null(xlab))
        xlab <- if (!missing(x) && !is.list(x) && !is.matrix(x))
        else "X"

which makes the x-axis label default to "X" if the surface
is specified as a list.


						Rolf Turner

Current email address: rolf@maths.uwa.edu.au
Usual email address:   rolf@math.unb.ca
Comment 1 Jitterbug compatibility account 2001-11-11 23:22:03 UTC
Audit (from Jitterbug):
Sun Nov 11 17:22:03 2001	ripley	moved from incoming to Graphics