[R] axes=F with pairs()
Henrik Andersson
h.andersson at nioo.knaw.nl
Mon Aug 30 16:42:22 CEST 2004
Prof Brian Ripley wrote:
> On Mon, 30 Aug 2004, Henrik Andersson wrote:
>
>
>>If I want to fiddle with the axes, I normally plot things like this for
>>instance
>>
>>plot(1:5,axes=F)
>>axis(2,labels=letters[1:5])
>>
>>BUT, if I want to do remove the axes from a scatter plot matrix using i.e.
>>
>>pairs(cbind(runif(10),runif(10)),axes=F)
>>
>>I get
>>
>>Error in plot.default(x[, j], x[, i], xlab = "", ylab = "", axes =
>>FALSE, :
>> formal argument "axes" matched by multiple actual arguments
>
>
> As always, PLEASE read the help page before posting:
>
> ...: graphical parameters can be given as arguments to 'plot'.
>
> and `axes' is *not* a graphical parameter (see ?par).
>
>
>>How do I remove the axes ?
>
>
> Use graphical parameters, as it says. As in
>
> pairs(~Fertility + Education + Catholic, data = swiss,
> subset = Education < 20, main = "Swiss data, Education < 20",
> xaxt = "n", yaxt = "n")
>
Thanks for the swift reply, I already read the help page for both pairs
and par. It didn't make me any wiser though. (Is it so obvious that
'axes' is not a graphical parameter when it obviously does something to
graphs?)
Henrik
More information about the R-help
mailing list