On Mon, Oct 3, 2016 at 7:55 AM, Rolf Turner <[email protected]> wrote:
Dunno exactly whom I should ask about this problem, but I thought I'd start
with good old r-help.
I have recently acquired a new laptop, and have installed Ubuntu 16.04 on
it. Still having some teething problems.
If I do
plot(1:10,ylab=expression(italic(J(r)))
I get the error:
Error in title(...) :
X11 font -*-courier-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 5 at size 15 could
not be loaded
So it would seem that I am missing a font. Fonts have always been a
complete mystery to me. Can anyone suggest how I might rectify this
deficiency in the fonts on my system? If so, *please* be as explicit as you
can in your instructions; I am all at sea here.
cheers,
Rolf Turner
P. S. I have also just noticed that if I do:
plot(1:10,ylab=expression(alpha))
I get an "a" as the y-axis label, rather than the Greek letter alpha.
Likewise if I do plot(1:10,ylab=expression(Sigma)) I get a capital "S"
rather than an upper case Greek Sigma symbol. No error thrown, but.
Any ideas as to how to fix this problem?
For what it's worth, here is my sessionInfo():
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_NZ.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_NZ.UTF-8 LC_COLLATE=en_NZ.UTF-8
[5] LC_MONETARY=en_NZ.UTF-8 LC_MESSAGES=en_NZ.UTF-8
[7] LC_PAPER=en_NZ.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] misc_0.0-16
loaded via a namespace (and not attached):
[1] deldir_0.1-13 Matrix_1.2-3 mgcv_1.8-12
[4] abind_1.4-3 spatstat_1.46-1.036 rpart_4.1-10
[7] nlme_3.1-128 grid_3.3.1 polyclip_1.5-0
[10] lattice_0.20-33 goftest_1.0-3 tensor_1.5
Turns out that all I had to do was:
sudo apt-get install xfonts-100dpi
sudo-apt-get install xfonts-75dpi
I'd had to do something like this on my old Fedora-running laptop.
Finally figured out the apt-get command analogous to the old yum
command. (Different package name(s); took me a while to find/figure out
what the appropriate names are. I'm *slow*!!!)
Thanks to everyone who tried to help me overcome my stupidity!
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.