Relative Content

Tag Archive for rggplot2histogram

Why does `stat_bin` show wrong numbers in `ggplot` in R?

df <- structure(list(var = c(1.05948875000079, 0.447350300925749, 1.58715715277802, 3.35221946759356, 10.673740787037, 0.000798611111111111, 0.020890879628283, 0.255016180555578, 0.0198229976853839, 2.38157386574204, 0.0626651736100515, 0.359117986110074, 4.7448886342595, 0.403400393517481, 0.34288234953803, 35.8170894675923, 0.71517319444429, 0.306423807869907, 0.299665833333576, 0.0385900578703041, 2.3121235995381, 34.1266861689808, 16.4716899189822, 0.0696409606492078, 1.37993454861144, 2.01074842592632, 0.205752581018541, 0.0885363310189159, 0.00225040509193032, 0.416561539352492, 0.0581732870362423, 0.0912203472218028, 0.369547928240564, 0.368868460646934, 0.0146497337961638, 0.929739918981989, 0.250581990739814, 5.68362587962989, 2.27526233796168, 0.0127318518526024, 0.903574016204587, 0.171842569443915, 0.308981307869156, 1.46733488425888, 38.8849084374998, 0.35137751157361, 0.619270625001302, 25.2428018981494, 2.69385361110999, 0.0759213078711872, 0.0291767592590164, […]