Open e-clin opened 7 years ago
Hey @e-clin, it's great that you showed a bug. However, the development of ggpmisc happens mostly on bitbucket (https://bitbucket.org/aphalo/ggpmisc) so you should post the issue over there. This repository is only a clone made by the @cran-robot to have a duplicate of CRAN on GitHub.
@Rekyt Thanks for your message. I have now duplicated this post on Bitbucket.
The problem
Settings in
coef.digits
andrr.digits
are overridden to trim trailing zeros in the formatted coefficients and R-square, even if the zeros are part of the significant figures.A reproducible example
If
coef.digits = 2
, a slope of 1.04 should be shown as 1.0. Instead, 1.0 was simplified as 1 and subsequently not displayed. The resultant equation is misleading as the regression line is clearly unparallel with the 1:1 line as shown in the example code below: