Comments (12)
I have checked all pp_check plots and only have three minor suggestion:
- In
ppc_resid_binned
, the y-axis label says "Average Residual" but wouldn't "Average Residuals" be more consistent? - In
ppc_ts*
andppc_vs_x*
one might want to add a legend indicating thaty
is displayed by the lines / dots similar to how it is done inppc_violin_grouped
. - In the facet titles of
ppc_resid
,yrep
is written in italic whiley
is not.
from bayesplot.
Text in ppc plots
- Fix y-axis label in
ppc_resid_binned
- Fix facet labels in
ppc_resid
- Add legend to
ppc_ts*
andppc_vs_x*
Text in mcmc plots
still needs checking
from bayesplot.
I have checked the mcmc_plots and have a few suggestions:
mcmc_hist_by_chain
uses the same y axis for all parameters, which may lead to strange looking densities (try it withexample_mcmc_draws()
). Similarily,mcmc_areas
uses the same x-axis, which again may look strange. (formcmc_intervals
using the same x-axis not a problem from my perspective)- The visualization of the point estimate in
mcmc_areas
only goes to the middle of the density. I think it looks better to display it completely from the bottom to the top of the density. - In
mcmc_neff_hist
the colors overlay each other at the borders. - In
mcmc_nuts_*
you writeaccept_stat__
andtreedepth__
. Are those many underscores necessary when displayed in the plot? mcmc_nuts_energy
fails withAesthetics must be either length 1 or the same as the data (1): fill, colour, x
from bayesplot.
Thanks Paul, I'll try to get to these today. Much appreciated.
On Monday, August 29, 2016, Paul-Christian Bürkner [email protected]
wrote:
I have checked the mcmc_plots and have a few suggestions:
- mcmc_hist_by_chain uses the same y axis for all parameters, which
may lead to strange looking densities (try it with example_mcmc_draws()).
Similarily, mcmc_areas uses the same x-axis, which again may look
strange. (for mcmc_intervals using the same x-axis not a problem from
my perspective)- The visualization of the point estimate in mcmc_areas only goes to
the middle of the density. I think it looks better to display it completely
from the bottom to the top of the density.- In mcmc_neff_hist the colors overlay each other at the borders.
- In mcmc_nuts_* you write accept_stat__ and treedepth__. Are those
many underscores necessary when displayed in the plot?- mcmc_nuts_energy fails with Aesthetics must be either length 1 or
the same as the data (1): fill, colour, x—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHb4Q8srcY3Fkmej3jnp_uCxf9chpwu8ks5qkto6gaJpZM4Jo3Le
.
from bayesplot.
For (1):
It's not clear to me how to deal with the issue you raise about mcmc_hist_by_chain
. Try this:
x <- example_mcmc_draws()
data <- reshape2::melt(x, value.name = "Value")
graph <- ggplot(data, aes(x = Value, y = ..density..)) +
geom_histogram()
graph + facet_grid(Chain ~ Parameter, scales = "fixed")
graph + facet_grid(Chain ~ Parameter, scales = "free")
graph + facet_grid(Chain ~ Parameter, scales = "free_y")
graph + facet_grid(Chain ~ Parameter, scales = "free_x")
None of the different scales
settings creates a plot that is equally readable for all parameters.
from bayesplot.
For (5):
I'm not seeing that failure with mcmc_nuts_energy
. Do you have an example?
from bayesplot.
For (2):
should be taken care of by 3971db4
from bayesplot.
For (3):
I'm not sure why this is happening. You? It might be that unless the binwidth is really tiny there is going to be some overlap at the cutoff points for where the color changes.
from bayesplot.
For (4):
No, we don't need the underscores, I was just trying to be consistent with how we usually write them. I'm undecided on whether to keep them or remove them.
from bayesplot.
(1). You are right. We won't be able to achieve this with facet_grid, since rows are indicating chains not parameters. Accordingly, we will have to leave it as it is I guess.
(3) I have no idea and it is only a minor issue anyway and likely nothing that can be changed outside of ggplot...
(4) I was seeing that you write log-posterior instead of lp__ so I thought, you might also want to change the other names. I am fine with both of course.
(5) After updating all of my packages the error went away.
from bayesplot.
(1) Even if we swapped it so that rows were parameters and columns were chains (i.e. Parameter ~ Chain
in the facet formula) it wouldn't work either. So I guess we either leave it as, get rid of the plot entirely (I'm not even sure how useful it is), or put in the documentation that it doesn't work well if you show parameters with large uncertainties and small uncertainties in the same plot. Preference?
(3) If it's confusing to have that overlap I could make the histogram all the same color and just put vertical lines at the points where the color currently changes. Do think it's preferable to do that or leave as is?
(4) Good point. Although it may actually make the most sense to just change log-posterior
back to lp__
because it's almost always not really the log-posterior (just up to constant)
(5) Ok great
from bayesplot.
(1) I would leave the plot as is but put a little note in the documentation.
(3) It's not confusing it is just not perfect. I prefer colored bars over vertical lines though, so leave it as is for now.
(4) As long as you explain all the technical parameter names in the doc, using lp__
will be more consistent I guess. And technical names are ok for technical plots I guess.
from bayesplot.
Related Issues (20)
- ppc_km_overlay(): add argument for left-truncation?
- Deprecations in ggplot2 and tidyselect
- ppc_loo_* consistency HOT 5
- Phase out functions that reside in posterior HOT 2
- ppc_loo_pit_qq theoretical line HOT 1
- Error during installation of 1.10.0 HOT 6
- `mcmc_pairs()` works differently on an HPC cluster? HOT 1
- deprecated stat(density) HOT 1
- reporting a warning HOT 1
- Error in mcmc_areas "Error in element_line(...)" when using example code
- Warning message regards deprecated 'facets' argument when using mcmc_plot(..., type = "acf") HOT 2
- pp_check methods to support cmdstanr's CmdStanFit
- PPC plot for categorical outcomes HOT 2
- Update SVGs for visual tests after new ggplot2 release
- Extend ppc_pit_ecdf and ppc_pit_ecdf_grouped to handle discrete data HOT 2
- Add `bounds` argument to plots building on `geom_density` and `stats_density` HOT 1
- Support for handling censored data in PPC plots via imputation HOT 2
- pp_check for prior predictive checks HOT 4
- Add warning about using ppc_stat stat="mean"
- Facets argument of facet_grid() deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bayesplot.