Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to rename "root" in sund2b #96

Closed
cammyoung opened this issue Oct 31, 2019 · 4 comments
Closed

Option to rename "root" in sund2b #96

cammyoung opened this issue Oct 31, 2019 · 4 comments

Comments

@cammyoung
Copy link

@cammyoung cammyoung commented Oct 31, 2019

Hi,

When displaying the sund2b plots in shiny, I always get the question "What does root mean?". Is there a simple way to rename it? I end up having to create a layer in the hierarchy that totals 100% and has the name I want for clarity, but it is still confusing to users of the dashboard.

Thanks for developing this! It's very straightforward to use, and looks great.

@timelyportfolio
Copy link
Owner

@timelyportfolio timelyportfolio commented Nov 2, 2019

@cammyoung I am happy to hear that you are enjoying sund2b. Very good question, and something that is now possible with version 2.1.2. Unfortunately the solution is not straightforward. How are you supplying data to sund2b? Are you using the csv method or passing a hierarchy from d3r?

@timelyportfolio
Copy link
Owner

@timelyportfolio timelyportfolio commented Nov 2, 2019

@cammyoung I just added a rootLabel argument for sund2b. If possible, will you install from Github with install.github("timelyportfolio/sunburstR") and let me know if this solves the issue? Thanks.

timelyportfolio added a commit that referenced this issue Nov 2, 2019
@timelyportfolio
Copy link
Owner

@timelyportfolio timelyportfolio commented Nov 5, 2019

@cammyoung I went ahead and pushed the change to CRAN so you can install.packages. I am going to close but please reopen if this does not fulfill your objective. Thanks!

@cammyoung
Copy link
Author

@cammyoung cammyoung commented Nov 5, 2019

Thanks so much for the quick response! This was exactly what I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.