Open jfrench opened 1 year ago
Thanks for reporting. I'll take a look. I recommend also checking out the mcmc_acf
and mcmc_acf_bar
functions in our bayesplot package. Those are more recent versions of similar plots. (We may deprecate the plotting functions in rstan in the future and rely on bayesplot instead.)
Summary:
The stan_ac function doesn't work properly if the ggplot2 package isn't loaded.
Reproducible Steps:
Reproducible example:
Current Output:
Plot is produced but empty.
Running the following code produces the expected result
Changing line 20 (?) of the function's code to
dots$fun.data <- ggplot2::mean_se
seems to correct the issue.RStan Version:
The version of RStan you are running (e.g., from
packageVersion("rstan")
)2.26.15
R Version:
4.2.2 (2022-10-31 ucrt)
Operating System:
Windows 10 x64 (build 19044)