ggplot2 internal references modified to work externally.