Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ropensci/plotly into cars…
Browse files Browse the repository at this point in the history
…on-cookbook-density
  • Loading branch information
cpsievert committed May 27, 2015
2 parents b897c52 + fb40491 commit 2ea8fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-ggplot-histogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test_that("geom_histogram(aes(y = ..density..)) displays a density", {
area <- sum(tr$y) * bw
# the "area" of the plot (should be 1).
# note this also serves as a check for the default binwidth
expect_equal(area, 1, 0.1)
expect_equal(area, 1, tolerance = 0.1)
})

test_that("geom_histogram(aes(fill = ..count..)) works", {
Expand Down

0 comments on commit 2ea8fe2

Please sign in to comment.