Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

area under normalized histogram is not 1 in plotly R #2394

Open
ArunRegmi opened this issue Sep 27, 2024 · 0 comments
Open

area under normalized histogram is not 1 in plotly R #2394

ArunRegmi opened this issue Sep 27, 2024 · 0 comments

Comments

@ArunRegmi
Copy link

in https://plotly.com/r/histograms/, under 'Normalized Histogram' heading, histogram is generated as
library(plotly)
fig <- plot_ly(x = ~rnorm(50),
type = "histogram",
histnorm = "probability")

fig

The area of normalized histogram is as shown in the website is expected to be 1, but obtained close to 0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant