---------- Forwarded message ---------- From: Ahmed Attia <ahmedatia80 at gmail.com> Date: Tue, Sep 17, 2013 at 11:17 AM Subject: axis lab font in r To: r-help-request at r-project.org I have an a question about the axis lab font in r. I use font.lab, but r changes the font of x axis lab only. How I can change the font of y lab axis as well? I have another problem; when I increase the size of y lab, the lab goes out of the graph box. I use R version 2.15.2 (32-bit) Thank you -- Ahmed M. Attia Research Assistant Dept. Of Soil&Crop Sciences Texas A&M University ahmed.attia at ag.tamu.edu Cell phone: 001-979-248-5215 -- Ahmed M. Attia Research Assistant Dept. Of Soil&Crop Sciences Texas A&M University ahmed.attia at ag.tamu.edu Cell phone: 001-979-248-5215
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example We need a bit of information and code about how you are using font.ab. As far as I can see both x and y axes should be affected. See this example from http://r.789695.n4.nabble.com/font-lab-and-font-axis-td3009882.html x<-rnorm(100) hist(x,axes=F,font.lab=12,font.main=9) axis(1,font.axis=4) axis(2,font.axis=3) John Kane Kingston ON Canada> -----Original Message----- > From: ahmedatia80 at gmail.com > Sent: Tue, 17 Sep 2013 11:23:02 -0500 > To: r-help at r-project.org > Subject: [R] Fwd: axis lab font in r> I have an a question about the axis lab font in r. I use font.lab, but > r changes the font of x axis lab only. How I can change the font of y > lab axis as well? > > I have another problem; when I increase the size of y lab, the lab > goes out of the graph box. > > I use R version 2.15.2 (32-bit) > > Thank you > -- > Ahmed M. Attia >> Research Assistant > Dept. Of Soil&Crop Sciences > Texas A&M University > ahmed.attia at ag.tamu.edu > Cell phone: 001-979-248-5215____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
On 09/18/2013 02:23 AM, Ahmed Attia wrote:> ---------- Forwarded message ---------- > From: Ahmed Attia<ahmedatia80 at gmail.com> > Date: Tue, Sep 17, 2013 at 11:17 AM > Subject: axis lab font in r > To: r-help-request at r-project.org > > > > I have an a question about the axis lab font in r. I use font.lab, but > r changes the font of x axis lab only. How I can change the font of y > lab axis as well? > > I have another problem; when I increase the size of y lab, the lab > goes out of the graph box. >Hi Ahmed, In the example below, font.lab appears to work for both axes: plot(1:10) # allow user to step through plots par(ask=TRUE) # change the font to bold par(font.lab=2) plot(1:10) # double the size of the axis labels par(cex.lab=2) plot(1:10) # add more space on the left par(mar=c(5,6,4,2)) plot(1:10) par(ask=FALSE) Jim