Skip to content

Commit ff0604a

Browse files
committed
scale network nodes by contributions for #59
1 parent 4fdd2b6 commit ff0604a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: repometrics
22
Title: Metrics for Your Code Repository
3-
Version: 0.1.3.047
3+
Version: 0.1.3.048
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.3.047",
11+
"version": "0.1.3.048",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

inst/extdata/quarto/network.qmd

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ chart = ForceGraph(network, {
4545
nodeId: d => d.id,
4646
nodeGroup: d => d.group,
4747
nodeTitle: d => d.id,
48-
nodeRadius: 10,
48+
nodeRadius: d => 10 * Math.log10(d.contributions + 1),
4949
linkStrokeWidth: l => Math.sqrt(l.value),
5050
width,
51-
height: 200,
51+
height: 400,
52+
linkStrength: 0.001,
5253
invalidation // a promise to stop the simulation when the cell is re-run
5354
})
5455
```

0 commit comments

Comments
 (0)