You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (ash_res$ier==1) message("Estimate nonzero outside interval ab.")
data.frame(x=ash_res$x, density=ash_res$y)
}
¹ In theory, the histograms should align perfectly. In practice, ash::bin1() differs from graphics::hist(), e.g. compare ash::bin1(faithful$eruptions, ab = c(1.6, 5.2), nbin = 18)$nc and hist(faithful$eruptions, breaks = 18, right = TRUE, plot = FALSE)$counts.
The text was updated successfully, but these errors were encountered:
The following code should produce (nearly¹) overlapping histograms:
...but it doesn't:
The reason is that
ash::ash1()
is never provided withm
(orkopt
), but is rather always called with the defaultm = 5
:ggalt/R/geom_ash.r
Lines 115 to 127 in 30dc0da
¹ In theory, the histograms should align perfectly. In practice,
ash::bin1()
differs fromgraphics::hist()
, e.g. compareash::bin1(faithful$eruptions, ab = c(1.6, 5.2), nbin = 18)$nc
andhist(faithful$eruptions, breaks = 18, right = TRUE, plot = FALSE)$counts
.The text was updated successfully, but these errors were encountered: