Error when plotting sf object — Error: could not find function “geom_sf”

后端 未结 1 793
南旧
南旧 2020-12-10 12:56

I\'m currently running R Version 3.3.3 on Windows and have ggplot2 version 2.2.1 and the sf package version 0.5-4 and am getting an error saying that R could not find the fu

1条回答
  •  我在风中等你
    2020-12-10 13:57

    While running R as the administrator, reinstall ggplot2 like this:

    devtools::install_github("tidyverse/ggplot2")
    require(ggplot2)
    

    You should be able to see it now with ?geom_sf

    For questions related to using devtools, see this SO answer.

    0 讨论(0)
提交回复
热议问题