Comments (3)
On Thursday, October 13, 2016, milkha [email protected] wrote:
1 - For histograms (e.g., in ppc_stat, and ppc_hist) it would be good to
have a y-label which shows the counts (not sure what is plotted currently,
counts or density). This is useful specially in ppc_stat_group, because it
gives you an extra information about the size of each group.Yeah, I'm not sure seeing the values is ever super useful (for this
particular plot) when it's density on the y-axis (that's what it is now),
but I agree it could be useful for counts. Maybe it should just always be
count, that way if you use+ yaxis_text()
it will be meaningful for count
variables. Alternatively it could be an argument to the function, e.g.
ppc_stat_grouped(..., freq = TRUE),
which is how it is for hist()
in base R.
2 - It would be good to have a ppc_hist_group function for comparing the
distributions at a finer level.Yeah I agree. Officially on the to-do list.
Thanks for the suggestions.
from bayesplot.
@milkha I just changed the y-axis to counts in 54aaee2 for any PPC plot that is a histogram. The y-axis text is still off by default because it's really only useful in some cases, but it can easily be turned on using yaxis_text()
, e.g.
ppc_stat(y, yrep, stat = "median") + yaxis_text()
should now show counts on the y-axis if you reinstall.
I also moved ppc_hist_grouped
to it's own issue (#41).
from bayesplot.
Actually, I added a freq
argument, defaulting to TRUE
. So count is the default but setting freq=FALSE
will put density on the y-axis
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.