Hi all, I have written a note near each of my graphs using mtext. mtext(text,side=1,line=4,cex=0.5,adj=0) Then I have exported the graphs as a PDF file. pdf(file=name,paper='a4',width=7.27,height=10.69) The mtext appears OK in R. But it looks like it is bolded in the PDF file. http://n4.nabble.com/file/n2016971/graph.png I am not sure if this is actually my monitor/computer's problem. But I want to see if it can be fixed in R. Many thanks, Chris -- View this message in context: http://n4.nabble.com/Words-appear-to-be-bolded-in-the-PDF-output-tp2016971p2016971.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]
On Mon, 19-Apr-2010 at 10:54PM -0800, chrisli1223 wrote:
|>
|> Hi all,
|>
|> I have written a note near each of my graphs using mtext.
|> mtext(text,side=1,line=4,cex=0.5,adj=0)
|>
|> Then I have exported the graphs as a PDF file.
|> pdf(file=name,paper='a4',width=7.27,height=10.69)
That seems backwards to me. I'd begin with the pdf() call, then do the
plot, then dev.off(). Maybe that's what you meant: if not, I've no
idea what you did.
|>
|> The mtext appears OK in R. But it looks like it is bolded in the PDF file.
|> http://n4.nabble.com/file/n2016971/graph.png
That's a fairly low res png file, not a pdf file, but even so, it
doesn't look like font = 2 to me. It's a considerably larger cex
value than the other text, but it's still not bold.
|>
|> I am not sure if this is actually my monitor/computer's
|> problem. But I want to see if it can be fixed in R.
Decide after seeing what it looks like printed.
|>
|> Many thanks,
|> Chris
|>
|> --
|> View this message in context:
http://n4.nabble.com/Words-appear-to-be-bolded-in-the-PDF-output-tp2016971p2016971.html
|> Sent from the R help mailing list archive at Nabble.com.
|>
|> [[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.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Hi,
Taking a wild guess, it looks to me that you might have overlaid
several times the same text,
plot.new()
text(0.5,0.5,rep("test",10))
HTH,
baptiste
On 20 April 2010 08:54, chrisli1223 <chrisli at austwaterenv.com.au>
wrote:>
> Hi all,
>
> I have written a note near each of my graphs using mtext.
> mtext(text,side=1,line=4,cex=0.5,adj=0)
>
> Then I have exported the graphs as a PDF file.
> pdf(file=name,paper='a4',width=7.27,height=10.69)
>
> The mtext appears OK in R. But it looks like it is bolded in the PDF file.
> http://n4.nabble.com/file/n2016971/graph.png
>
> I am not sure if this is actually my monitor/computer's problem. But I
want
> to see if it can be fixed in R.
>
> Many thanks,
> Chris
>
> --
> View this message in context:
http://n4.nabble.com/Words-appear-to-be-bolded-in-the-PDF-output-tp2016971p2016971.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ? ? ? ?[[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.
>
Problem solved. Yes, I found that the text is overlaid several times! Thank you very much for your help, greatly appreciated. :) -- View this message in context: http://n4.nabble.com/Words-appear-to-be-bolded-in-the-PDF-output-tp2016971p2018219.html Sent from the R help mailing list archive at Nabble.com.