Does anyone know where I can find documentation on creating custom ggplot2 scales for S3 classes? I am working on a package that contains a class for year-quarter/month/week dates and I'd like them to show up nicely by default.
I found an old gist that does something similar for the zoo package, but that one is 6 years old and contains some guessing judging from the comments. I was wondering if there is some official documentation somewhere.