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

Embedding Treemap:itreemap in Rshiny #26

Open
chintasunny opened this issue Oct 1, 2015 · 1 comment
Open

Embedding Treemap:itreemap in Rshiny #26

chintasunny opened this issue Oct 1, 2015 · 1 comment

Comments

@chintasunny
Copy link

Hi
I am trying to embed itreemap function (interactive treemap) in R shiny. It keeps giving the error
"prod_metric_csv() is not a data.frame"
However, when I change the function to treemap, it works fine. It also works fine when I invoke the itreemap in regular rstudio (without shiny). Issue is occurring only when I embed in Shiny
Any pointers on the error is greatly appreciated.
Regards
Sunil

@mtennekes
Copy link
Owner

Hi Sunil,

This is a tricky one. itreemap scans the global environment for data.frames and checks with https://github.com/mtennekes/treemap/blob/master/pkg/R/itreemap.R#L44-L45 if the name of dtf is one of them. These lines will cause an error is you do not provide the data.frame directly to itreemap but via a function (in your case prod_metric_csv()) If there is a simple solution, I can implement that.

However, I will not do any major improvements anymore to itreemap, since there is a better interactive interface nowadays: https://github.com/timelyportfolio/d3treeR

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

No branches or pull requests

2 participants