0

how to unpack a library in R using ::

ggplot::data$price'

instead of writing code like library(ggplot)

1 Answers1

0

If you don't want to load a library, then you can make each function of a package explicit.

data(mtcars)

ggplot2::ggplot(mtcars) + 
    ggplot2::geom_point(ggplot2::aes(x = cyl, y = mpg))