Prepare data to plot from an object of class meanCI
Examples
x=meanCI(acs,sex,age)
meanCI2df(x)
#> # A tibble: 857 × 5
#> sex age x name value
#> <chr> <int> <dbl> <chr> <int>
#> 1 Male 62 2 Male 62
#> 2 Female 78 1 Female 78
#> 3 Female 76 1 Female 76
#> 4 Female 89 1 Female 89
#> 5 Male 56 2 Male 56
#> 6 Female 73 1 Female 73
#> 7 Male 58 2 Male 58
#> 8 Male 62 2 Male 62
#> 9 Female 59 1 Female 59
#> 10 Male 71 2 Male 71
#> # … with 847 more rows