---
# System prepended metadata

title: Test map
tags: [testing, ' manager:hahn', ' update-low']

---

---
title: Test map
tags: testing, update-low, manager:hahn
---

<!--

> [name=Stefan Herzog] [changing font size](https://stackoverflow.com/a/1960887) of the nodes doesn't really work nicely with the current layout (I've tried it out). Currently I suggest to leave it as is.-->
# latest visualisation
```graphviz
graph G {

### layout
#layout = fdp
#layout = twopi
#layout = neato
layout = circo
#layout = dot

node[fontsize="100%"]
edge[style="setlinewidth(2)"]

ranksep = 1
nodesep = 1
# ratio=fill

### NODES
# invisible dummies are here to get the centre node 'communicating about vaccines' to stay in the middle
dummy[style=invis]
dummy2[style=invis]
dummy3[style=invis]
dummy4[style=invis]
dummy5[style=invis]
dummy6[style=invis]
dummy7[style=invis]
dummy8[style=invis]
dummy9[style=invis]
#dummy10[style=invis]
#dummy11[style=invis]
#dummy12[style=invis]
#dummy13[style=invis]
#dummy14[style=invis]
#dummy15[style=invis]
#dummy16[style=invis]
#dummy17[style=invis]
dummy18[style=invis]
vaccine[label="Communicating\nabout Vaccines" style=filled fillcolor=orange shape=box fontsize="100%"]


### Higher level
behaviour[fillcolor=yellow style=filled shape=egg]

communication[fillcolor=yellow style=filled shape=egg]

facts[fillcolor=yellow style=filled shape=egg]

misinformation[fillcolor=yellow style=filled shape=egg]

policy[fillcolor=yellow style=filled shape=egg]
# trust[fillcolor=red style=filled]

### Lower level
antivax_misinfo[label="common\nanti-vax\nmisinformation" URL="https://c19vax.scibeh.org/pages/misinfo_antivax"]

argumentquality[label="argument\nquality\n& fallacies" URL="https://c19vax.scibeh.org/pages/argumentquality"]

c19behaviour[label="success of\nbehavioural\nmeasures" URL="https://c19vax.scibeh.org/pages/c19behaviour"]

c19vaxfacts[label="facts about\ncovid19 vaccines" URL="https://c19vax.scibeh.org/pages/c19vaxfacts"]

conspiracy_theories[label="conspiracy\ntheories" URL="https://c19vax.scibeh.org/pages/misinfo_conspiracytheories"]

covidfacts[label="facts about\ncovid19" URL="https://c19vax.scibeh.org/pages/covidfacts"]

freeriding[URL="https://c19vax.scibeh.org/pages/freeriding"]

healthpros[label="role of\nhealthcare\nprofessionals" URL="https://c19vax.scibeh.org/pages/healthpros"]

mandates[label="vaccination\nmandates" URL="https://c19vax.scibeh.org/pages/vaxmandates"]

misinfo_fallout[label="fallout from\nmisinformation" URL="https://c19vax.scibeh.org/pages/misinfo_fallout"]

myths[label="vaccination\nmyths" URL="https://c19vax.scibeh.org/pages/misinfo_myths"]

nudging[URL="https://c19vax.scibeh.org/pages/nudging"]

strategic_comms[label="strategic\ncommunication" URL="https://c19vax.scibeh.org/pages/policysuccess"]

politics[label="politics of\nmisinformation" URL="https://c19vax.scibeh.org/pages/misinfo_politics"]

public_attitudes[label="public\nattitudes" URL="https://c19vax.scibeh.org/pages/publicattitudes"]

risk_perception[label="risk\nperception" URL="https://c19vax.scibeh.org/pages/riskperception"]

sideeffects[label="side\neffects" URL="https://c19vax.scibeh.org/pages/sideeffects"]

trust_scientists[label="trust in\nscientists" URL="https://c19vax.scibeh.org/pages/trust_scientists"]

vaccine_success[label="success of\nvaccines" URL="https://c19vax.scibeh.org/pages/vaxsuccess"]

vaccine_deniers[label="vaccine\ndeniers" URL="https://c19vax.scibeh.org/pages/misinfo_vaxdeniers"]

vaxculture[label="cultural\ndifferences" URL="https://c19vax.scibeh.org/pages/vaxculture"]


vaxdevt[label="vaccine\ndevelopment" URL="https://c19vax.scibeh.org/pages/vaxprocess"]

# vaxuptake[label="variables\ninfluencing\nvaccine uptake" URL="https://c19vax.scibeh.org/pages/vaxuptake"]

### connections
behaviour--public_attitudes
behaviour--vaxculture
behaviour--c19behaviour
#behaviour--vaxuptake
behaviour--freeriding
communication--risk_perception
communication--healthpros
communication--trust_scientists
communication--strategic_comms
facts--covidfacts
facts--c19vaxfacts
facts--sideeffects
facts--vaccine_success
facts--vaxdevt
misinformation--argumentquality
misinformation--myths
misinformation--misinfo_fallout
misinformation--antivax_misinfo
misinformation--politics
misinformation--vaccine_deniers
misinformation--conspiracy_theories
#policy--c19behaviour
policy--mandates
#policy--policy_success
policy--nudging
# trust--trust_scientist

### connecting the high level topics
# attitudes--communication--trust--misinformation--policy--facts--attitudes

{rank=same facts--behaviour--communication--misinformation--policy--facts}

}
```

# tests with vega

```vega
{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "width": 500,
  "height": 300,
  "padding": 1,

  "data": [
    {
      "name": "tree",
      "values": [
        {"id": "1", "parent": null, "title": "Misinformation"},
        {"id": "2", "parent": "1", "title": "common anti-vax misinformation", "url": "https://c19vax.scibeh.org/pages/misinfo_antivax"},
        {"id": "3", "parent": "1", "title": "vaccination myths"},
        {"id": "4", "parent": "1", "title": "argument quality"}
      ],
      "mark":"bar",
      "encoding": {
    "x": {"field": "1", "type": "ordinal"},
    "y": {"field": "2", "type": "quantitative"},
    "href": {"field": "url"}
  },
  
      "transform": [
        {
          "type": "stratify",
          "key": "id",
          "parentKey": "parent"
        },
        {
          "type": "tree",
          "method": "tidy",
          "separation": true,
          "size": [{"signal": "width"}, {"signal": "height"}]
        }
      ]      
    },
    {
      "name": "links",
      "source": "tree",
      "transform": [
        { "type": "treelinks" },
        { "type": "linkpath",
          "shape": "diagonal"
          }
      ]
    }, 
    {
      "name": "tree-boxes",
      "source": "tree",
      "transform": [
          { 
            "type": "filter",
            "expr": "datum.parent == null"
          }
        ]
    },
    {
      "name": "tree-circles",
      "source": "tree",
      "transform": [
        {
          "type": "filter",
          "expr": "datum.parent != null"
        }
      ]
    }
  ],
  "marks": [
    {
      "type": "path",
      "from": {"data": "links"},
      "encode": {
        "enter": {
          "path": {"field": "path"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "tree-boxes"},
      "encode": {
        "enter": {
          "stroke": {"value": "black"},
          "width": {"value": 100},
          "height": {"value": 20},
          "x": {"field": "x"},
          "y": {"field": "y"}
        }
      }
    },
    {
      "type": "symbol",
      "from": {"data": "tree-circles"},
      "encode": {
        "enter": {
          "stroke": {"value": "black"},
          "width": {"value": 100},
          "height": {"value": 20},
          "x": {"field": "x"},
          "y": {"field": "y"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "tree"},
      "encode": {
        "enter": {
          "stroke": {"value": "black"},
          "width": {"value": 100},
          "height": {"value": 20},
          "x": {"field": "x"},
          "y": {"field": "y"}
        }
      }
    },
    {
      "type": "text",
      "from": {"data": "tree"},
      "encode": {
        "enter": {
          "stroke": {"value": "black"},
          "text": {"field": "title"},
          "x": {"field": "x"},
          "y": {"field": "y"},
          "dx": {"value":50},
          "dy": {"value":13},
          "align": {"value": "center"}
        }
      }
    }
  ]
}
```

```vega
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
  "width": 200,
  "height": 100,
  "padding": 5,

   "data": [
    {
      "name": "tree",
      "values": [
        {"id": "A", "parent": null, "title": "misinformation"},
        {"id": "B", "parent": "A"},
        {"id": "C", "parent": "A"},
        {"id": "D", "parent": "A"},
        {"id": "E", "parent": "A"}
      ],
      "transform": [
        {
          "type": "stratify",
          "key": "id",
          "parentKey": "parent"
        },
        {
          "type": "tree",
          "method": "tidy",
          "size": [{"signal": "width"}, {"signal": "height"}]
        }
      ]
    },
    {
      "name": "links",
      "source": "tree",
      "transform": [
        { "type": "treelinks" },
        { "type": "linkpath" }
      ]
    }
  ],

  "scales": [
    {
      "name": "color",
      "type": "ordinal",
      "range": {"scheme": "category20"}
    }
  ],

  "marks": [
    {
      "type": "path",
      "from": {"data": "links"},
      "encode": {
        "enter": {
          "stroke": {"value": "#ccc"}
        },
        "update": {
          "path": {"field": "path"}
        }
      }
    },
    {
      "type": "symbol",
      "from": {"data": "tree"},
      "encode": {
        "enter": {
          "fill": {"scale": "color", "field": "id"},
          "stroke": {"value": "white"},
          "size": {"value": 400}
        },
        "update": {
          "x": {"field": "x"},
          "y": {"field": "y"}
        }
      }
    }
  ]
}
```

<iframe src="https://intelligence.weforum.org/topics/a1G0X000006NvAbUAK?tab=publications"></iframe>