Giter VIP home page Giter VIP logo

Comments (3)

jgabry avatar jgabry commented on June 14, 2024

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.

jgabry avatar jgabry commented on June 14, 2024

@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.

jgabry avatar jgabry commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.