--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/aGw4IBVkdcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.
--
Hi!As far as I can tell from the source there is no way to customize line strength and alpha values, etc.. Was this left out on purpose for a first release? I know that this is tedious, but I also know that my users wish to set these to their taste (I consider to use bayesplot in my own package).Should I file an issue for this?Best,Sebastian
Many thanks for developing this plotting package.
I wonder whether there is a standard (or at least recommended) way to plot PPC for discrete outputs. For instance, the target output (1, 2, or 3) follows a categorical distribution. How to visualize the PPC properly after the Stan draws?
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+unsubscribe@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/aGw4IBVkdcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.
Thanks Bill, that's great to hear. Glad it's being put to good use already!
Jonah
If you run into any mysterious behavior or have any suggestions for improvement at any point
Is it generally true that the mean and sd fall outside the yrep typical set when there's a link function between the linear predictor and y?
Jonah,
From the documentation (?xaxis_title), it appears I want labs(), not xaxis_title(). Unfortunately, that doesn't appear to work.posterior[,12:17] %>% mcmc_areas(prob = 0.5) produces a basic graph as I want.posterior[,12:17] %>% mcmc_areas(prob = 0.5) + labs(x = 'test') produces the same graph--no word "test" in sight.posterior[,12:17] %>% mcmc_areas(prob = 0.5) + labs(list(x = 'test')) does the same thing, although this seems correct.
posterior[,12:17] %>% mcmc_areas(prob = 0.5) + labs(list(title = 'Title', x = 'test')) produces the same thing plus "Title" right above the y axis.
# with rstan demo model library("rstan") fit2 <- stan_demo("eight_schools", warmup = 300, iter = 700) posterior2 <- extract(fit2, inc_warmup = TRUE, permuted = FALSE) color_scheme_set("mix-blue-pink") p <- mcmc_trace(posterior2, pars = c("mu", "tau"), n_warmup = 300, facet_args = list(nrow = 2, labeller = label_parsed)) p + facet_text(size = 15)
Error in eval(expr, envir, enclos) : object 'Value' not found
> sessionInfo() R version 3.3.0 (2016-05-03) Platform: x86_64-pc-linux-gnu (64-bit) Running under: CentOS release 6.4 (Final) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 [6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] reshape_0.8.6 bayesplot_1.0.0 rstan_2.12.1 StanHeaders_2.12.0-1 ggplot2_2.2.0 devtools_1.12.0 loaded via a namespace (and not attached): [1] Rcpp_0.12.8 magrittr_1.5 munsell_0.4.3 colorspace_1.3-1 R6_2.2.0 stringr_1.1.0 httr_1.2.1 plyr_1.8.4 [9] tools_3.3.0 grid_3.3.0 gtable_0.2.0 git2r_0.15.0 withr_1.0.2 lazyeval_0.2.0 digest_0.6.10 assertthat_0.1 [17] tibble_1.2 gridExtra_2.2.1 reshape2_1.4.2 codetools_0.2-15 curl_2.2 memoise_1.0.0 inline_0.3.14 labeling_0.3 [25] stringi_1.1.2 scales_0.4.1 stats4_3.3.0
library("bayesplot")
trace_colors <- c("#E66101", "#998EC3", "#542788", "#F1A340", "#D8DAEB", "#FEE0B6")color_scheme_set(trace_colors)
x <- example_mcmc_draws()
mcmc_trace(x)```{r}posterior_array <- as.array(my_fit)dimnames(posterior_array)mcmc_areas(posterior_array, pars = c("mu[1]", "mu[2]"))```$iterations
NULL
$chains
[1] "chain:1" "chain:2" "chain:3" "chain:4" "chain:5" "chain:6" "chain:7"
[8] "chain:8" "chain:9" "chain:10"
$parameters
[1] "mu[1]" "mu[2]" "mu[3]" "mu[4]" "mu[5]" "mu[6]"
[7] "mu[7]" "mu[8]" "mu[9]" "sigma[1]" "sigma[2]" "sigma[3]"
Error in theme_get()[newitem_names] :
object of type 'closure' is not subsettable
--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/aGw4IBVkdcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.