运行此脚本并得到错误:找不到函数"plot_gg“
已尝试卸载并再次安装ggplot2
运行3.6.0
library(rayshader)
library(ggplot2)
library(tidyr)
gg = ggplot(diamonds, aes(x, depth)) +
stat_density_2d(aes(fill = stat(nlevel)),
geom = "polygon",
n = 100,bins = 10,contour = TRUE) +
facet_wrap(clarity~.) +
scale_fill_viridis_c(option = "A")
plot_gg(gg,multicore=TRUE,width=5,height=5,scale=250)需要3D图形,但看不到它。获取无法找到函数"plot_gg“
发布于 2019-08-07 01:27:10
如果发生这种情况,并且您以前安装了旧版本的rayshader,有时(特别是在Windows上),您需要转到库目录并手动删除软件包。这个问题通常也是通过直接从CRAN安装来修复的,一旦构建了二进制文件。
https://stackoverflow.com/questions/56873325
复制相似问题