Running this script and getting the error: could not find function "plot_gg"
Tried uninstalling and installing ggplot2 again
Running 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)
Expecting a 3D graph but cannot see it. Getting could not find function "plot_gg"