Use the operator ::to indicate that you want to call the version of the function that is in the package ggplot2, and not just the version you just created in the global workspace. that is, something like
ggplot <- function(...) {
ggplot2::ggplot(...) + theme_bw()
}
should work (although I have not tested it!)
theme_bw(). , theme_set() , .
library("ggplot2"); theme_set(theme_bw())
, , /, .