christophergandrud / christophergandrud/networkD3
specify tick interval and format in chord network
- 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:

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.

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.