[R] how to change the margins of a plot area

Lathouri, Maria m.lathouri06 at imperial.ac.uk
Sun Mar 13 18:00:34 CET 2011


Dear all

I have attached a file in a csv format, with two variables; the code that I am using to plot the boxplots is 
>boxplot(ALKY, CL, ylab="Concentration", lwd=0.7, boxwex=0.4)

I hope this will help.

Thanks
Maria

________________________________________
From: John Kane [jrkrideau at yahoo.ca]
Sent: 13 March 2011 13:19
To: r-help at r-project.org; Lathouri, Maria
Subject: Re: [R] how to change the margins of a plot area

Hi Maria,
I think we need some sample data and code to really be ablo to help.

in the meantime have have a look at ?par for general plotting info.

--- On Sun, 3/13/11, Lathouri, Maria <m.lathouri06 at imperial.ac.uk> wrote:

> From: Lathouri, Maria <m.lathouri06 at imperial.ac.uk>
> Subject: [R] how to change the margins of a plot area
> To: "r-help at r-project.org" <r-help at r-project.org>
> Received: Sunday, March 13, 2011, 8:15 AM
> Dear all,
>
> I am ploting two boxplot of two chemical variables using
> the format
> boxplot(Alkalinity, logAlkalinity, log="y",
> col=c("lightblue"), lwd=0.6, boxwex=0.3)
>
> However when I plot like this, the distance between the two
> boxplots is very big and as well the distance of each
> boxplot from the plot area, left and right. How can I
> minimise that distance between the boxplots and as well the
> distance of each boxplot from the left and right margin of
> the plot area?
>
> Another question is that when I write in the above
> ylab="Concentration", I get in the y axis as well in each
> tick and a number. How can I not have this but only the
> text?
>
> Thank you.
>
> Kind regards
> Maria
>
>     [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>


More information about the R-help mailing list