[R-sig-eco] Re : Problem with mfrow function

Lars Westerberg lawes at ifm.liu.se
Wed Jun 22 16:33:54 CEST 2011


mar and oma are also arguments of par. Try:
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))
boxplot(Fire$Densite~Fire$Site,ylim=c(40,100),ylab="(%)")
boxplot(Fire$Charge~Fire$Site,ylim=c(50,610),ylab="g/m2)")
boxplot(Fire$Vitessvent~Fire$Site,ylim=c(0,5),ylab="(m/s)")

On 2011-06-22 16:13, momadou sow wrote:
> 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 at azti.es>
> À : momadou sow<momadou at yahoo.fr>; R-sig-ecology at 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 at r-project.org
>> [mailto:r-sig-ecology-bounces at r-project.org] En nombre de momadou sow
>> Enviado el: miércoles, 22 de junio de 2011 14:05
>> Para: R-sig-ecology at 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 at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>
>>
>> _______________________________________________
>> R-sig-ecology mailing list
>> R-sig-ecology at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


More information about the R-sig-ecology mailing list