<div dir="ltr">Dear All, I got some problems in displaying my font when I plot by R.<div style><br></div><div style>Here's the environment I use</div><div style>x86_64-apple-darwin10.8.0<br></div><div style>R version 3.0.1 (2013-05-16) -- "Good Sport"<br>
</div><div style><br></div><div style>When I try to plot a figure in either Rstudio or Emacs(with ESS), for example, the following command</div><div style><div><br></div><div>plot(Dep.real.ln~AggGRP.real.ln,</div><div>     ylab="Depreciation (ln)", </div>
<div>     xlab=expression(paste(Sigma, " GRP (ln)"))</div><div>     )</div><div>abline(DepAggGRP.lm)</div><div>b0 <- round(DepAggGRP.lm.sum$coefficients[1,1], 2)</div><div>b1 <- round(DepAggGRP.lm.sum$coefficients[2,1],2)</div>
<div>r2 <- round(DepAggGRP.lm.sum$r.squared,2)</div><div>eqn <- bquote(italic(y)==.(b0)+.(b1)*italic(x)*"," ~~r^2==.(r2))</div><div>#italic(y) == .(b0) + .(b1) * italic(x) ","~~R^2 == .(r2))</div>
<div>text(9.5, 7.0, eqn, pos=4)</div><div><br></div><div style>I got the output pdf like attached. Obviously the font fails to display greek words in xlab, and some basic operation symbols in text(). I try to open the pdf in PDF viewer, say, acrobat reader, it works fine, as attached.</div>
</div><div style><br></div><div style>After googling a while, I see it might be due to the quartz settings. But I really dont know how to do that: can I change my settings, to let my quartz display plot font correctly, just like the acrobat reader does, plz?</div>
<div style><br></div><div style>thanks in advance.</div><div style><br></div><div style>here are some of my  R output that might be needed.</div><div style><br></div><div style><div>> quartzFont()</div><div>Error in checkQuartzFont(family) : </div>
<div>  argument "family" is missing, with no default</div><div>> quartzFonts()</div><div>$serif</div><div>[1] "Times-Roman"      "Times-Bold"       "Times-Italic"    </div><div>[4] "Times-BoldItalic"</div>
<div><br></div><div>$sans</div><div>[1] "Helvetica"             "Helvetica-Bold"       </div><div>[3] "Helvetica-Oblique"     "Helvetica-BoldOblique"</div><div><br></div><div>$mono</div>
<div>[1] "Courier"             "Courier-Bold"        "Courier-Oblique"    </div><div>[4] "Courier-BoldOblique"</div></div><div><br><div><div><br></div>-- <br></div></div></div>