xkcd
패키지를 시작하고 the vignette의 지침을 따르려고합니다. "그래프 저장"섹션 2.2에 도달하자마자 오류가 발생합니다.XKCD 패키지의 문제
font.add("xkcd", regular = "xkcd.ttf")
p <- ggplot() + geom_point(aes(x=mpg, y=wt), data=mtcars) +
theme(text = element_text(size = 16, family = "xkcd"))
print(p)
오류입니다 : 여기
는 코드 내가 무엇을 놓치고Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
In addition: Warning messages:
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "xkcd"
2: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "xkcd"
?
2.1 절에서 설명한 글꼴을 설치 했습니까? –
예! [많은 문제가 발생한 후에] (http://www.stackoverflow.com/questions/23231246/not-able-to-install-xkcd-fonts/). – Shambho