I'm playing with within-module z-score (page 68) which is defined as $$z_i = \frac{k_i - \overline{k}}{SD(k)}$$ where $k_i$ is degree of node $i$ within network module (community). I would like to visualize my network, where diameter of the node will correspond to calculated $z$-score. However, i have no idea how to present negative values on the figure. The first idea that crosses my mind is to compute percentile rank and use it as node's attribute.

Any other ideas?


1 Answer 1


You could try:
$size = e^{z_i}$
Or related:
$size = z_i \;\;\;\;\;\;\;for\; z_i\geq 0$
$size = \frac{1}{-z_i} \;\;\;\;for \;z_i<0$

Edit: reconsidering, my this second method is very bad (it gives very large values for inputs that are just below 0), please ignore it.

  • $\begingroup$ Thanks. Do you have any paper or other reference which I could cite? $\endgroup$
    – Andrej
    Oct 28, 2016 at 9:42
  • 2
    $\begingroup$ Unfortunately I don't. I just came up with it off the top of my head. If you really want to credit the idea, you could cite this page suppose. If you want justification, I can't really help you anymore than say that it is a simple smooth function from the reals to the positive reals which is strictly increasing. $\endgroup$
    – dimpol
    Oct 28, 2016 at 10:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.