<p>For my own use, I wrote an R function to plot the observed probability (with error bars) of some binary outcome by quantiles of some continuous predictor variable. Among other things, I plan to use it to check the linearity assumption for logistic regression. </p>

<p>Would there be an appropriate way to share this function with others on CV? I think others might find it useful since I don't believe there's an off-the-rack implementation, and I certainly would be very grateful if others pointed out any bugs.</p>
