[R] par() function does not work

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 23 13:08:22 CEST 2008


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



More information about the R-help mailing list