1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# stat_bin throws error when wrong combination of aesthetic is present
Problem while computing stat.
i Error occurred in the 1st layer.
Caused by error in `setup_params()`:
! `stat_bin()` requires an x or y aesthetic.
---
Problem while computing stat.
i Error occurred in the 1st layer.
Caused by error in `setup_params()`:
! `stat_bin()` must only have an x or y aesthetic.
---
Problem while computing stat.
i Error occurred in the 1st layer.
Caused by error in `setup_params()`:
! `stat_bin()` requires a continuous x aesthetic.
x the x aesthetic is discrete.
i Perhaps you want `stat="count"`?
# inputs to binning are checked
Computation failed in `stat_bin()`.
Caused by error in `bins()`:
! `breaks` must be a <numeric> vector, not a character vector.
---
`x_range` must have two elements.
---
Computation failed in `stat_bin()`.
Caused by error in `bin_breaks_width()`:
! `binwidth` must be a number, not a character vector.
---
Computation failed in `stat_bin()`.
Caused by error in `bin_breaks_width()`:
! `binwidth` must be a number larger than or equal to 0, not the number -4.
---
`x_range` must have two elements.
---
Computation failed in `stat_bin()`.
Caused by error in `bin_breaks_bins()`:
! `bins` must be a whole number larger than or equal to 1, not the number -4.
# stat_count throws error when both x and y aesthetic present
Problem while computing stat.
i Error occurred in the 1st layer.
Caused by error in `setup_params()`:
! `stat_count()` must only have an x or y aesthetic.
|