Git Product home page Git Product logo

Comments (4)

hafen avatar hafen commented on July 29, 2024

Great idea - this is actually exactly how I had envisioned "implementing" such a feature - just waiting for someone to need it :). I'll relax the regex checking on group to allow / (first thing Monday) and once that is done, you can go ahead and start using / in your group specifications - of course it won't mean anything until I update the UI to deal with it, but once I do you won't have to make any changes.

I'll have to think about the best way to update the UI. A collapsible interface could get tedious for deep hierarchies. Also, what is uncollapsed by default, etc.

from trelliscope.

kaneplusplus avatar kaneplusplus commented on July 29, 2024

That sounds great. I'll be able to define the group organization.

Your point about tediousness is good. One thing to note is that the last level of my hierarchies tend to be displays based on different parameter values (quantiles in my case). In shiny, I would have handled this with a slider. In the current version of trelliscope the display window I have each as a different display. I'm not sure what's the most effective.

from trelliscope.

hafen avatar hafen commented on July 29, 2024

I've committed this change.

For what you are doing, if you are making a plot against the same data set but with different quantile parameters, and each display is a single panel, you probably want to think about creating a single multi-panel display across all quantile parameters. What you would do is basically create a ddo whose values are the quantile parameters, then make your panel function use this value to make the plot with the desired quantile setting.

For example, suppose you want quantiles from min to max in increments of 0.05 - then one way to do it is:

quantileParams <- ddo(lapply(0:20, function(x) list(x, x/20)))
panelFn <- function(q) {
  # plot function that uses the quantile value q
  # ...
}
cogFn <- function(q) {
  list(quantile = cog(q))
}
makeDisplay(quantileParams, panelFn = panelFn, cogFn = cogFn)

quantileParams is a ddo of key-value pairs, the keys are 0, ..., 20, the values are 0, 0.05, etc.

Now you have a single display with a cognostic called "quantile" and you can sort or filter your panels by this value.

from trelliscope.

kaneplusplus avatar kaneplusplus commented on July 29, 2024

OK, thanks this is helpful.

from trelliscope.

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.