티스토리 뷰

dggplot::geom_polygon + fortify(SpatialPloygonDataFrame ==> data.frame)


fortify 함수 오류




seoul_admin@data$id <- rownames(seoul_admin@data)
seoul_admin_f <- fortify(seoul_admin, region="id")


위와 같은 그래프를 출력하기 위한 코드 중 일부입니다.

Error: isTRUE(gpclibPermitStatus()) is not TRUE 라는 에러를 출력했습니다.


install.packages("gpclib")

Installing package into ‘C:/Users/Nick/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘gpclib’
  These will not be installed

Error: isTRUE(gpclibPermitStatus()) is not TRUE



이런 경우엔

R Tools 최신버전 업그레이드를 해야합니다.


https://cran.r-project.org/bin/windows/Rtools/





최신 Rtools로 업그레이드를 한 뒤,

ggplot2를 활성화 하고 코드를 실행시키면

정상출력이 되는 것을 확인 할 수 있습니다.



댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2026/04   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
글 보관함