运行此脚本并收到错误:找不到函数“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”