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

unused argument (units = "TWh") #85

Closed
tobigithub opened this issue Oct 2, 2015 · 1 comment
Closed

unused argument (units = "TWh") #85

tobigithub opened this issue Oct 2, 2015 · 1 comment

Comments

@tobigithub
Copy link

Hi,
from your example page:

URL <- paste0(
        "https://cdn.rawgit.com/christophergandrud/networkD3/",
        "master/JSONdata/energy.json")
Energy <- jsonlite::fromJSON(URL)
# Plot
sankeyNetwork(Links = Energy$links, Nodes = Energy$nodes, Source = "source",
             Target = "target", Value = "value", NodeID = "name",
             units = "TWh", fontSize = 12, nodeWidth = 30)

gives the error

Error in sankeyNetwork(Links = Energy$links, Nodes = Energy$nodes, Source = "source",  : 
  unused argument (units = "TWh")

Removing units works:

URL <- paste0(
        "https://cdn.rawgit.com/christophergandrud/networkD3/",
        "master/JSONdata/energy.json")
Energy <- jsonlite::fromJSON(URL)
# Plot
sankeyNetwork(Links = Energy$links, Nodes = Energy$nodes, Source = "source",
             Target = "target", Value = "value", NodeID = "name",
             fontSize = 12, nodeWidth = 30)

This is networkD3_0.2.1 under PRO 3.2.1.
Cheers
Tobias

@timelyportfolio
Copy link
Collaborator

Thanks so much. We have just made quite a few changes over the last couple of days. Adding units to sankeyNetwork is one of those changes. If you would like to try out the new stuff, you can.

devtools::install_github("christophergandrud/networkD3")

We would love any feedback. We are planning to submit to CRAN over the next couple of days.

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

3 participants