Momadou,

In addition, for a pretty plot, you can use

boxplot(Fire$Charge~Fire$Site,ylim=c(50,610),ylab=expression(paste("g/",m^2)))

This will write correctly the units of ylab.

See

?plotmath

Rubén H. Roa-Ureta, Ph. D.
AZTI Tecnalia, Txatxarramendi Ugartea z/g,
Sukarrieta, Bizkaia, SPAIN

-----Original Message-----
From: momadou sow [mailto:momadou@yahoo.fr]
Sent: Wed 6/22/2011 4:13 PM
To: Rubén Roa
Cc: R-sig-ecology@r-project.org
Subject: Re : [R-sig-eco] Problem with mfrow function
 
Hi, 
Thank
you Rubén for your answer. 
I
use arguments mar and oma in my following code:
par(mfrow = c(5,1))
mar=c(2,2,2,2)
oma=c(2,2,2,2)
boxplot(Fire$FMC~Fire$Site,ylab="(%)",ylim=c(5,135))
mar=c(2,2,2,2)
oma=c(2,2,2,2) 
boxplot(Fire$Densite~Fire$Site,ylim=c(40,100),ylab="(%)")
mar=c(2,2,2,2)
oma=c(2,2,2,2)
boxplot(Fire$Charge~Fire$Site,ylim=c(50,610),ylab="g/m2)") 
mar=c(2,2,2,2)
oma=c(2,2,2,2)   
boxplot(Fire$Vitessvent~Fire$Site,ylim=c(0,5),ylab="(m/s)")    
mar=c(2,2,2,2)
oma=c(2,2,2,2)
boxplot(Fire$ROS~Fire$Site,ylim=c(0,16),xlab="Sites",ylab="(m/min)")
 # But the result is not good (please see attached file). I want
to reduce spaces between the 5 boxplots. 
Thanks for your help


De : Rubén Roa <rroa@azti.es>
À : momadou sow <momadou@yahoo.fr>; R-sig-ecology@r-project.org
Envoyé le : Jeudi 23 Juin 2011 0h11
Objet : RE: [R-sig-eco] Problem with mfrow function

mfrow is not a function, it is an argument of function par.
Use arguments mar and oma of function par to change space between plots.
Check

?par

HTH

Rubén

____________________________________________________________________________________ 

Dr. Rubén Roa-Ureta
AZTI - Tecnalia / Marine Research Unit
Txatxarramendi Ugartea z/g
48395 Sukarrieta (Bizkaia)
SPAIN



> -----Mensaje original-----
> De: r-sig-ecology-bounces@r-project.org 
> [mailto:r-sig-ecology-bounces@r-project.org] En nombre de momadou sow
> Enviado el: miércoles, 22 de junio de 2011 14:05
> Para: R-sig-ecology@r-project.org
> Asunto: [R-sig-eco] Problem with mfrow function
> 
> Hi,
> I did 5 boxplots using mfrow function. The figure do not 
> appear very good (please see attached file).There is wide 
> spaces between boxplots. 
> How can I do to reduce spaces between boxplots then 
> increasing my 5 boxplots? 
> Thanks for your help
> Mamadou
>     [[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> 


	[[alternative HTML version deleted]]

