Convert “regular” plot to ggplot object (and then plotly)
问题 I am using the R programming language. I incorporated my own code along with a lengthy tutorial over here : https://michael.hahsler.net/SMU/EMIS7332/R/viz_classifier.html . In the end, I produced a visual "plot" (see the end of this code, "final_plot") library(cluster) library(Rtsne) library(dplyr) library(randomForest) library(caret) library(ggplot2) library(plotly) #PART 1 : Create Data #generate 4 random variables : response_variable ~ var_1 , var_2, var_3 var_1 <- rnorm(10000,1,4) var_2<