do we have to put library(ggplot2) in the script?

I notice in my course videos, the instructor would put library(ggplot2) before every time he tries to create a diagram. Is that a necessary step to do so?

Not before every plot, but once on each new R session, actually, this is necessary for every library that you want to use.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.