Ubuntu 16 (docker image of rocker/tidyverse), but
I could have gone by installing "notosans cjk".
#bash (after adding rstudio user to sudoer)
sudo apt install fonts-noto-cjk
#R
par(family="Noto Sans")
# Theme() is easy to adjust.
ggplot()
+ theme(axis.text.x=element_text(angle=60, hjust=1))
/etc/sysconfig/i18n is the default setting for SentOS 6
LANG="C"
SYSFONT="latarcyrheb-sun16"
where
#LANG="C"
LANG = "ja_JP.UTF-8"
SYSFONT="latarcyrheb-sun16"
Wouldn't it change if I changed it to ?
My environment is CentOS 6.5
, Rversion 3.1.2
pdf(outfile, family="Japan1")
plot (expression)
dev.off()
How about this?
If you do not specify a font that can be displayed in Japanese, it will cause garbled characters, so set the Japanese font with pdf().
追Additional
RjpWiki Question Corner
Below is a quote from the code we used for verification.
d<-c (0:100)
v1<-10000*exp (-0.05*d)
pdf(file="c:/test.pdf")
plot(d,v1,xlab="time",ylab="value",
main=", sub="exponential", pch=22,
ylim=c(0,10000), type="l", lwd=2)
dev.off()
577 PHP ssh2_scp_send fails to send files as intended
610 Uncaught (inpromise) Error on Electron: An object could not be cloned
568 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
891 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.