Hi all, I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in labels and titles etc. I seem to be unable to figure out how to do it. The problem is that the titles of the plots are simply unreadable when I insert them into my LaTeX text, since they are relatively small compared to the entire plot. I am sure it is pretty simple, can anybody give me a hint ? Please reply to: pvremortNOSPAM at vub.ac.be Thanks, Piet -- Piet van Remortel PhD Student pvremort at vub.ac.be http://como.vub.ac.be/Members/Piet.htm
Piet van Remortel wrote:> I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc. > > I seem to be unable to figure out how to do it. The problem is that > the titles of the plots are simply unreadable when I insert them into my > LaTeX text, since they are relatively small compared to the entire plot.Does this help? par(mar=c(10,10,10,10), cex.axis=2, cex.lab=2, cex.main=4) plot(runif(20)) title("Main Title") see ?par Chuck Cleland -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894
see ?par Mahbub. --- Piet van Remortel <pvremort at vub.ac.be> wrote:> Hi all, > > I need to enlarge te fonts used oo R-plots (plots, > histograms, ...) in > labels and titles etc. > > I seem to be unable to figure out how to do it. > The problem is that the > titles of the plots are simply unreadable when I > insert them into my LaTeX > text, since they are relatively small compared to > the entire plot. > > I am sure it is pretty simple, can anybody give me a > hint ? > > Please reply to: pvremortNOSPAM at vub.ac.be > > > Thanks, > > > Piet > > > -- > Piet van Remortel > PhD Student > pvremort at vub.ac.be > http://como.vub.ac.be/Members/Piet.htm > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help> PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html
Hallo On 11 Feb 2004 at 13:30, Piet van Remortel wrote:> Hi all, > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc.using cex.main=some.number.greater.than.1 in title(...) will enlarge fonts in main title. follow ?par, ?title, ?axis However I do not know if it works when inserting figures to LaTeX text. Cheers Petr> > I seem to be unable to figure out how to do it. The problem is that > the titles of the plots are simply unreadable when I insert them into > my LaTeX text, since they are relatively small compared to the entire > plot. > > I am sure it is pretty simple, can anybody give me a hint ? > > Please reply to: pvremortNOSPAM at vub.ac.be > > > Thanks, > > > Piet > > > -- > Piet van Remortel > PhD Student > pvremort at vub.ac.be > http://como.vub.ac.be/Members/Piet.htm > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.htmlPetr Pikal petr.pikal at precheza.cz
Piet van Remortel wrote:> Hi all, > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc. > > I seem to be unable to figure out how to do it. The problem is that > the titles of the plots are simply unreadable when I insert them into my > LaTeX text, since they are relatively small compared to the entire plot. > > I am sure it is pretty simple, can anybody give me a hint ? > > Please reply to: pvremortNOSPAM at vub.ac.be > > > Thanks, > > > Piet > >See ?par Uwe Ligges
On Wed, 11 Feb 2004 13:30:22 +0100, Piet van Remortel <pvremort at vub.ac.be> wrote :>Hi all, > >I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in >labels and titles etc. > >I seem to be unable to figure out how to do it. The problem is that the >titles of the plots are simply unreadable when I insert them into my LaTeX >text, since they are relatively small compared to the entire plot. > >I am sure it is pretty simple, can anybody give me a hint ? > >Please reply to: pvremortNOSPAM at vub.ac.beYou probably want to use the cex arguments, e.g. plot(rnorm(10),rnorm(10), cex.axis=1.5, cex.lab=1.5, cex=1.5) You might need to make the figure margins bigger to have space for the big labels. ?par documents all of these options (except cex, which is documented in ?plot.default, I think). Duncan Murdoch
On Wed, 11 Feb 2004, Petr Pikal wrote:> On 11 Feb 2004 at 13:30, Piet van Remortel wrote: > > > Hi all, > > > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > > labels and titles etc. > > using cex.main=some.number.greater.than.1 in > title(...) > will enlarge fonts in main title. >>From my experience you will have to enlarge also the plotmargins, otherwise label/s might be clipped out. See par() for margin handling.> However I do not know if it works when inserting figures to LaTeX text. >It works fine. Cheers, Itay Furman -- itayf at fhcrc.org Fred Hutchinson Cancer Research Center
On 11 Feb 2004 at 13:30, Piet van Remortel wrote:> Hi all, > > I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in > labels and titles etc.Nobody seems to have mentioned another way of achieving this, which is to scale the original plot to suit the intended final size in the document. E.g. if you use:> postscript(file="plot1.ps", width=4, height=4)then the 4"x4" figure will 'automatically' have relatively larger text and plot symbols. This works well with x11() which is subsequently printed, and pdf() also. HTH, Ray Brownrigg