Closed DanyangDai closed 2 years ago
I am unable to reproduce this issue. you may need to update your packages:
library(distributional)
library(ggdist)
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(ggplot2)
tibble(
dist = c(dist_transformed(dist_normal(4,2), exp, log), dist_gamma(3,3))
) %>%
ggplot(aes(y=0, dist = dist, fill = format(dist))) +
stat_dist_slab() +
facet_grid(vars(format(dist)), scales = "free_y") +
xlim(c(0,50))
#> Warning in func(x - mh * (i == seq(n)), ...): NaNs produced
#> Warning in func(x - mh * (i == seq(n)), ...): NaNs produced
#> Warning in func(x - mh * (i == seq(n)), ...): NaNs produced
#> Warning in func(x - mh * (i == seq(n)), ...): NaNs produced
Created on 2021-08-30 by the reprex package (v2.0.0)
Computation failed in
stat_dist_slab()
: Cannot recycle input of size 2 to match the distributions (size 1).