GithubHelp home page GithubHelp logo

Comments (7)

timelyportfolio avatar timelyportfolio commented on June 11, 2024 1

Here is one way of hiding end #21 (comment) if you would like. Let me know if you would like me to make a helper function or just making the default behavior.

from sunburstr.

timelyportfolio avatar timelyportfolio commented on June 11, 2024

-end is intentionally shown to differentiate true end from arbitrarily chopped end points. I'm sure there is a way to hide -end around these lines, but for me to do will be probably end of the week. Any volunteers?

from sunburstr.

jrangeles avatar jrangeles commented on June 11, 2024

Can you explain then why my data doesn't work without -end in the path sequence?
The initial data I had worked without the need of the -end mark, so I find it strange that simplifying the initial data and excluding redundant steps causes the chart not to rendered.

I don't have much JS experience so I'm not sure how to modify the code. Though I'm open to work on it if you could guide me what needs to be done.

from sunburstr.

timelyportfolio avatar timelyportfolio commented on June 11, 2024

Unfortunately, I honestly don't remember. Guiding will take as long or longer than answering. Just don't have the time over the next couple days.

from sunburstr.

timelyportfolio avatar timelyportfolio commented on June 11, 2024

@jrangeles, the reason you need a -end is explained in the original Gist.

every sequence should have an "end" marker as the last element,
unless it has been truncated because it is longer than the
maximum sequence length (6, in the example).
The purpose of the "end" marker is to distinguish
a true end point (e.g. the user left the site)
from an end point that has been forced by truncation.

This indicates that the network needs to have depth < 6 or will require a -end marker.

from sunburstr.

timelyportfolio avatar timelyportfolio commented on June 11, 2024

@jrangeles feel free to reopen if you don't think this is resolved. Closing in prep for CRAN submission.

from sunburstr.

sco-lo-digital avatar sco-lo-digital commented on June 11, 2024

Kent - I think a great default behaviour would be ie DisplayEnd = TRUE as a parameter to the function sunburst(). This allows control, but avoids confusion pertaining to the requirement that the data itself contain "end" at the end of each sequence string. In other words, I'm of the mind that if it is in the data, it should show up the same way by default in the visualization. The option to "clean it up" would be very welcome indeed

I also think it would be helpful in the ?sunburst to elucidate the required form of the input data. something like "sunburst takes as input a two column data frame of the form: 1.) sequence patterns separated by "-" and terminating with "end" and 2.) the relative frequency with which this pattern occurs. "

Thanks for another great tool. This is really helping us explore data in a way we certainly otherwise would not have been able to!

from sunburstr.

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.