Re: [R] par() function does not work

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 23 Jul 2008 12:08:22 +0100 (BST)

Did you start R with --vanilla to check that this is not something you have done? It is good practice, and I suspect will show you that you have mis-diagosed this problem.

On Wed, 23 Jul 2008, Fabio Sanchez wrote:

> Dear R-nautes,
>
> I installed the 2.7.1 version of R and found it is not possible to modify
> graphical parameters with par().
>
> for example;
>
>> par(mfrow=c(2,2))
> Error in c(2, 2) : unused argument(s) (2)

That error is not from par() but from c(). I suspect you have defined a function c() in your workspace that is breaking your code.

>> par$mfrow
> NULL
That is not supposed to work. Perhaps you meant par()$mfrow?

> Does any one know what is the cause of this problem?
>
> Regards,
>
> Fabio
> --
> Fabio S?nchez, MD, MSc, PhD
> Unit of Dermatology and Venereology
> Department of Medicine
> Karolinska Institute
> SE-17176 Karolinska University Hospital
> Phone: +46 8 51772158
> Fax: +46 8 51773620
>
> [[alternative HTML version deleted]]
>
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_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.
Received on Wed 23 Jul 2008 - 11:23:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jul 2008 - 13:32:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive