christophergandrud / christophergandrud/networkD3

default variable names or indices for forceNetwork() arguments

Open
#191 5 comments 0 reactions 0 assignees View on GitHub
enhancement forceNetwork
Dominant language
R
Stars
659
Forks
259
PR merge metrics
No merged PRs in 30d

Description

The arguments in forceNetwork() that specify which variables/columns in the data frames to use could have sensible defaults. At the moment, forceNetwork() will error if all of the arguments below are not set. This is particularly annoying when your data has no concept of "Group", but you are forced to put something in there just so the function works. Defaults could be indices (preferable?), i.e. 1st column of the Links data frame is assumed to be the 'Source' column by default, or could be strings, i.e. Source = 'source'.

These are the arguments to consider making defaults for: Source, Target, Value, NodeID, Group

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.