Yes there is. ggplot uses the loess function as smoother by default in geom_smooth . this means that you can directly use loess to evaluate your anti-aliasing parameters.
Here is an example adapted from ?loess :
qplot(speed, dist, data=cars, geom="smooth")

Use loess to evaluate smoothed data and predict for estimates:
cars.lo <- loess(dist ~ speed, cars) pc <- predict(cars.lo, data.frame(speed = seq(4, 25, 1)), se = TRUE)
Now the ratings are in pc$fit and the standard error in pc$fit.se The next bit of code complements the set values ββin data.frame, and then breaks it into ggplot :
pc_df <- data.frame( x=4:25, fit=pc$fit) ggplot(pc_df, aes(x=x, y=fit)) + geom_line()

source share