christophergandrud / christophergandrud/networkD3

specify tick interval and format in chord network

Open
#188 1 comment 0 reactions 0 assignees View on GitHub
bug chordNetwork
Dominant language
R
Stars
659
Forks
259
PR merge metrics
No merged PRs in 30d

Description

The current behavior of the `useTicks` argument to `chordNetwork` appears to default to a tick interval of 1000, and the tick label format defaults to 'nk' to indicate n thousands. Is it possible to alter this behavior to allow a configurable tick interval and format?

Passing `useTicks = 1` to the example from the `chordNetwork` documentation produces this figure:
![image](https://cloud.githubusercontent.com/assets/10757582/24258250/8863347e-0fc3-11e7-9964-992bf78cd9d9.png)
If the code is then altered by multiplying `hairColourData` by 0.1, i.e.,
```r
chordNetwork(Data = hairColourData * 0.1,
width = 500,
height = 500,
colourScale = c("#000000",
"#FFDD89",
"#957244",
"#F26223"),
labels = c("red", "brown", "blond", "gray"),
useTicks = 1)

```
the following figure is produced.
![image](https://cloud.githubusercontent.com/assets/10757582/24258369/e90b88bc-0fc3-11e7-9477-2759ad08ecfc.png)
Ticks still appear to reflect 1000s, and only 0 is labeled. Desired behavior would allow the user to specify tick interval, tick label interval, and tick format. Using **`networkD3`** 0.4. Thank you.

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.