티스토리 뷰
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를 활성화 하고 코드를 실행시키면
정상출력이 되는 것을 확인 할 수 있습니다.
'IT > R' 카테고리의 다른 글
| 셀레니움 자바 실행 오류 해결 및 설치법 in r (selenium, java 설치) (1) | 2024.01.08 |
|---|---|
| R .shp 파일 불러오기 (2) | 2018.10.11 |
댓글