Space between axis label and tick labels

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Space between axis label and tick labels

Kare Edvardsen
I'm writing an publication in two column format and need to shrink some
plots. After increasing the axis labels it does not look nice at all.
The y-axis label and tick labels almost touch each other and the x-axis
tick labels expand into the plot instead of away from it. Is there a
better way than "cex" to control the:

1) font size of axis and tick labels

2) font thickness

3) placement of both axis and yick labels


Cheers,

Kare

--
###########################################
Kare Edvardsen <[hidden email]>
Norwegian Institute for Air Research (NILU)
Polarmiljosenteret
NO-9296 Tromso       http://www.nilu.no
Swb. +47 77 75 03 75 Dir. +47 77 75 03 90
Fax. +47 77 75 03 76 Mob. +47 90 74 60 69
###########################################

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Space between axis label and tick labels

Patrick Connolly
On Wed, 11-Jan-2006 at 10:52AM +0100, Kare Edvardsen wrote:

|> I'm writing an publication in two column format and need to shrink some
|> plots. After increasing the axis labels it does not look nice at all.
|> The y-axis label and tick labels almost touch each other and the x-axis
|> tick labels expand into the plot instead of away from it. Is there a
|> better way than "cex" to control the:
|>
|> 1) font size of axis and tick labels
|>
|> 2) font thickness
|>
|> 3) placement of both axis and yick labels


Try ?par and check out what it has to say about cex.axis and cex.lab.

Without any example code, I'm not clear on what you've tried, but you
might need to check out the axis function as well.

HTH

--
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Space between axis label and tick labels

Pikounis, Bill [CNTUS]
In reply to this post by Kare Edvardsen
Hello Kare:
I think some global graphics settings can get you what you need, assuming
you are using base graphics functions such as plot(). See ?par for
comprehensive details. For the specific characteristics you mention, I have
found the arguments in par for:

> 1) font size of axis and tick labels
>
> 2) font thickness
>

cex.axis & cex.lab are helpful; and perhaps the font.* series

> 3) placement of both axis and tick labels

mgp & tck are helpful.

Hope that helps,
Bill

-------------------------------
Bill Pikounis, PhD
Nonclinical Statistics
Centocor, Inc.
Malvern, PA 19355 (USA)


> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of Kare Edvardsen
> Sent: Wednesday, January 11, 2006 4:52 AM
> To: R-help
> Subject: [R] Space between axis label and tick labels
>
>
> I'm writing an publication in two column format and need to
> shrink some
> plots. After increasing the axis labels it does not look nice at all.
> The y-axis label and tick labels almost touch each other and
> the x-axis
> tick labels expand into the plot instead of away from it. Is there a
> better way than "cex" to control the:
>
> 1) font size of axis and tick labels
>
> 2) font thickness
>
> 3) placement of both axis and yick labels
>
>
> Cheers,
>
> Kare
>
> --
> ###########################################
> Kare Edvardsen <[hidden email]>
> Norwegian Institute for Air Research (NILU)
> Polarmiljosenteret
> NO-9296 Tromso       http://www.nilu.no
> Swb. +47 77 75 03 75 Dir. +47 77 75 03 90
> Fax. +47 77 75 03 76 Mob. +47 90 74 60 69
> ###########################################
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html