Hi I am trying to follow a tutorial using ggplot2 and plotly. Ggplot2 is working because I am able to get graphs. However, when I try to make an interactive graph by using ggplotly I get the error "could not find function "ggplotly". I thought something was wrong when I tried typing the ggplotly function and no suggestion popped up. When I try to call plotly into the library I see the following errors: Error: package or namespace load failed for ‘plotly’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘data.table’.
I downloaded the most recent version of R Studio but the problem occurred again. I guess based on the error from library(plotly) it never loaded. Anyone know what's going on? I'm on a Mac by the way if that explains anything.