[R] changing plot font for Times new roman

Roland Rau roland.rproject at gmail.com
Mon Aug 18 21:44:38 CEST 2008


Hi,

I have forgotten something: in case you don't want to produce postscript 
or pdf files, have also a look at the nice article by Paul Murrell in R 
News, Vol 4. No. 2:
http://cran.r-project.org/doc/Rnews/Rnews_2004-2.pdf

Best,
Roland


Roland Rau wrote:
> Hi,
> 
> milton ruser wrote:
>> we choose an family of fonts. I tryed par(family="times")
>> without success.
>>
> 
> what about this:
> pdf("plot1Times.pdf", family="Times")
> plot(1,1)
> dev.off()
> pdf("plot1NotTimes.pdf")
> plot(1,1)
> dev.off()
> 
> 
> Maybe you check also the help for
> ?postscriptFonts
> 
> I hope this helps you a bit further.
> 
> Best,
> Roland
> 
> 
> 
> 
> 
> 
>> Surfing on R archieve I got an suggestion of
>> use par(font.lab=6), but when I go to the
>> par(font.lab) help the highest value there is 5.
>> How can I have sure that font.lab=6 is the Times
>> New Roman?
>>
>> Thanks in advance,
>>
>> miltinho astronauta
>> brazil
>> ---
>>
>> op<-par()
>>
>> x11(800,500)
>> par(mfrow=c(1,2))
>>
>> x<-plot(runif(100),rnorm(100) , main="standard font")
>>
>> par(font.lab=6)
>> par(font.axis=6)
>>
>> x<-plot(runif(100),rnorm(100) , main="font=6")
>> par<-op
>>
>>     [[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.
>>
> 
> ______________________________________________
> 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