I made a plot in R with the ggplot package while changing the font of the texts using the following code.
require(ggplot2)
require(extrafont)
x1 <- runif (100,0,1)
x2 <- x1 + runif (100,0,1)
d <- data.frame(x1=x1, x2=x2)
ggplot(d, aes(x1, x2))+geom_point()+
  geom_smooth()+
  ggtitle("") +
  xlab("A") + ylab("Proportion") +
  theme_bw() +
  theme(text=element_text(family="Times New Roman", face="bold", size=12))
Using RStudio, I exported the graph in the PDF format. Then, I imported the graph in my word document. However, the texts did not show up in the graph when I open the document with Microsoft Word. This does not happen when I do not change the font to Times New Roman.
I would appreciate it if I could hear any suggestions. Thank you.
