Skip to content

Instantly share code, notes, and snippets.

@SimonGoring
Last active March 15, 2016 21:26
Show Gist options
  • Save SimonGoring/6d499c40e8f222d2146d to your computer and use it in GitHub Desktop.
Save SimonGoring/6d499c40e8f222d2146d to your computer and use it in GitHub Desktop.
Force-Directed Diagram of Simon Goring's publication network based on DOIs and ORCiDs.
license: MIT

A network plot of linked publications using DOIs and ORCiDs using D3.js based on Mike Bostock's force-directed graph here and DOI/ORCiD code initially presented here. The R back-end is a bit messy still. The hardest part was getting it into a JSON format that would work with d3.js.

Using the code on downwithtime you can append this block immediately after defining the vector of unique DOIs. It's still ugly, but it works.

to_json <- list(links = list(),
                nodes = data.frame(all.df[!duplicated(all.df$orcid),-1]))

for(i in 1:length(unique.dois)){
  doi <- unique.dois[i]
  
  authors <- all.df$name[all.df$doi %in% doi]
  
  if(length(authors) > 1){
     combi <- data.frame(t(combn(all.df$name[all.df$doi %in% unique.dois[i]], 2)),
                         width = 1)
     combi[,1] <- match(combi[,1], to_json$nodes$name)
     combi[,2] <- match(combi[,2], to_json$nodes$name)
     
  to_json$links[[i]] <- combi
  }
}

to_json$links <- do.call(rbind.data.frame, to_json$links)
colnames(to_json$links) <- c('source', 'target', 'width')

to_json$links <- to_json$links %>% group_by(source, target) %>% summarise(sum(width))
colnames(to_json$links) <- c('source', 'target', 'width')

#  There is a problem with the numbering because we don't get a consistent 1-n numbering that
#  d3 expects.
#  Here we reorder everything:

unique_source <- data.frame(news = 1:nrow(unique(to_json$links[,1])), 
                            olds = unlist(unique(to_json$links[,1])))

not_source <- to_json$links$target[!to_json$links$target %in% to_json$links$source]

target_source <- data.frame(news= 1:length(not_source) + max(unique_source$news),
                            olds = not_source)

resorter <- rbind.data.frame(unique_source, target_source)
                  
to_json$nodes <- to_json$nodes[(resorter$olds),]
to_json$links$source <- match(to_json$links$source, resorter$olds)
to_json$links$target <- match(to_json$links$target, resorter$olds)

cat(jsonlite::toJSON(to_json), file = 'authors.json')
{"links":[{"source":0,"target":1,"weight":1},{"source":0,"target":2,"weight":1},{"source":0,"target":3,"weight":1},{"source":0,"target":5,"weight":1},{"source":0,"target":6,"weight":3},{"source":0,"target":7,"weight":3},{"source":0,"target":8,"weight":2},{"source":0,"target":210,"weight":1},{"source":0,"target":10,"weight":2},{"source":0,"target":11,"weight":1},{"source":0,"target":12,"weight":1},{"source":0,"target":13,"weight":1},{"source":0,"target":14,"weight":1},{"source":0,"target":15,"weight":2},{"source":1,"target":2,"weight":1},{"source":1,"target":3,"weight":1},{"source":1,"target":211,"weight":1},{"source":1,"target":212,"weight":1},{"source":2,"target":3,"weight":1},{"source":2,"target":16,"weight":14},{"source":2,"target":213,"weight":1},{"source":2,"target":18,"weight":14},{"source":2,"target":19,"weight":7},{"source":2,"target":20,"weight":6},{"source":2,"target":23,"weight":5},{"source":2,"target":214,"weight":3},{"source":2,"target":215,"weight":2},{"source":3,"target":216,"weight":9},{"source":3,"target":217,"weight":1},{"source":3,"target":218,"weight":1},{"source":4,"target":0,"weight":1},{"source":5,"target":54,"weight":1},{"source":5,"target":219,"weight":1},{"source":6,"target":0,"weight":1},{"source":6,"target":210,"weight":1},{"source":6,"target":220,"weight":1},{"source":7,"target":8,"weight":5},{"source":7,"target":9,"weight":1},{"source":7,"target":10,"weight":6},{"source":7,"target":56,"weight":1},{"source":7,"target":60,"weight":1},{"source":7,"target":61,"weight":1},{"source":7,"target":62,"weight":1},{"source":7,"target":63,"weight":1},{"source":7,"target":221,"weight":1},{"source":7,"target":65,"weight":3},{"source":7,"target":68,"weight":1},{"source":7,"target":69,"weight":1},{"source":7,"target":72,"weight":2},{"source":7,"target":222,"weight":1},{"source":7,"target":74,"weight":1},{"source":7,"target":223,"weight":1},{"source":7,"target":224,"weight":3},{"source":8,"target":10,"weight":2},{"source":8,"target":12,"weight":1},{"source":8,"target":62,"weight":4},{"source":8,"target":63,"weight":1},{"source":8,"target":221,"weight":1},{"source":8,"target":69,"weight":15},{"source":8,"target":225,"weight":1},{"source":8,"target":79,"weight":6},{"source":8,"target":226,"weight":1},{"source":8,"target":227,"weight":1},{"source":8,"target":97,"weight":1},{"source":8,"target":228,"weight":1},{"source":8,"target":100,"weight":1},{"source":8,"target":102,"weight":1},{"source":8,"target":229,"weight":1},{"source":9,"target":0,"weight":1},{"source":9,"target":7,"weight":1},{"source":9,"target":8,"weight":2},{"source":9,"target":224,"weight":1},{"source":9,"target":79,"weight":1},{"source":9,"target":83,"weight":1},{"source":9,"target":107,"weight":1},{"source":9,"target":108,"weight":1},{"source":10,"target":8,"weight":2},{"source":10,"target":12,"weight":4},{"source":10,"target":68,"weight":2},{"source":10,"target":69,"weight":3},{"source":10,"target":96,"weight":1},{"source":10,"target":97,"weight":1},{"source":10,"target":112,"weight":2},{"source":10,"target":113,"weight":3},{"source":10,"target":114,"weight":1},{"source":10,"target":120,"weight":2},{"source":10,"target":121,"weight":2},{"source":10,"target":230,"weight":1},{"source":10,"target":231,"weight":1},{"source":10,"target":232,"weight":1},{"source":11,"target":12,"weight":2},{"source":11,"target":113,"weight":2},{"source":11,"target":133,"weight":3},{"source":11,"target":135,"weight":3},{"source":11,"target":233,"weight":1},{"source":11,"target":234,"weight":1},{"source":11,"target":138,"weight":1},{"source":11,"target":235,"weight":1},{"source":11,"target":139,"weight":1},{"source":11,"target":236,"weight":2},{"source":12,"target":39,"weight":1},{"source":12,"target":113,"weight":24},{"source":12,"target":115,"weight":3},{"source":12,"target":138,"weight":1},{"source":12,"target":147,"weight":1},{"source":12,"target":151,"weight":2},{"source":12,"target":163,"weight":2},{"source":13,"target":14,"weight":8},{"source":13,"target":113,"weight":1},{"source":13,"target":120,"weight":1},{"source":13,"target":169,"weight":1},{"source":13,"target":170,"weight":1},{"source":13,"target":171,"weight":1},{"source":13,"target":172,"weight":1},{"source":13,"target":173,"weight":1},{"source":13,"target":237,"weight":1},{"source":13,"target":238,"weight":1},{"source":13,"target":174,"weight":1},{"source":13,"target":239,"weight":2},{"source":14,"target":113,"weight":1},{"source":14,"target":120,"weight":1},{"source":14,"target":125,"weight":1},{"source":14,"target":233,"weight":1},{"source":14,"target":169,"weight":1},{"source":14,"target":170,"weight":1},{"source":14,"target":171,"weight":1},{"source":14,"target":172,"weight":3},{"source":14,"target":173,"weight":6},{"source":14,"target":181,"weight":1},{"source":14,"target":240,"weight":1},{"source":14,"target":186,"weight":2},{"source":14,"target":192,"weight":2},{"source":14,"target":241,"weight":1},{"source":14,"target":242,"weight":1},{"source":14,"target":195,"weight":1},{"source":14,"target":243,"weight":1},{"source":14,"target":199,"weight":1},{"source":14,"target":244,"weight":1},{"source":15,"target":117,"weight":1},{"source":15,"target":245,"weight":2},{"source":15,"target":203,"weight":1},{"source":15,"target":204,"weight":1},{"source":15,"target":205,"weight":1},{"source":15,"target":206,"weight":1},{"source":15,"target":207,"weight":4},{"source":15,"target":246,"weight":1},{"source":15,"target":208,"weight":1},{"source":15,"target":247,"weight":1},{"source":15,"target":248,"weight":1},{"source":15,"target":249,"weight":1},{"source":16,"target":213,"weight":1},{"source":16,"target":19,"weight":7},{"source":16,"target":20,"weight":6},{"source":16,"target":23,"weight":2},{"source":16,"target":214,"weight":3},{"source":17,"target":2,"weight":7},{"source":17,"target":16,"weight":7},{"source":17,"target":18,"weight":6},{"source":17,"target":19,"weight":7},{"source":17,"target":20,"weight":4},{"source":18,"target":16,"weight":12},{"source":18,"target":19,"weight":6},{"source":18,"target":20,"weight":6},{"source":18,"target":23,"weight":5},{"source":18,"target":214,"weight":3},{"source":19,"target":20,"weight":2},{"source":20,"target":2,"weight":7},{"source":20,"target":16,"weight":6},{"source":20,"target":17,"weight":3},{"source":20,"target":18,"weight":6},{"source":20,"target":19,"weight":5},{"source":20,"target":23,"weight":4},{"source":20,"target":25,"weight":1},{"source":20,"target":214,"weight":3},{"source":21,"target":2,"weight":7},{"source":21,"target":16,"weight":6},{"source":21,"target":18,"weight":7},{"source":21,"target":20,"weight":6},{"source":21,"target":22,"weight":5},{"source":21,"target":23,"weight":5},{"source":21,"target":25,"weight":4},{"source":21,"target":214,"weight":3},{"source":22,"target":2,"weight":6},{"source":22,"target":16,"weight":4},{"source":22,"target":18,"weight":6},{"source":22,"target":20,"weight":4},{"source":22,"target":23,"weight":4},{"source":22,"target":25,"weight":4},{"source":22,"target":214,"weight":2},{"source":23,"target":16,"weight":2},{"source":23,"target":20,"weight":1},{"source":23,"target":214,"weight":3},{"source":24,"target":2,"weight":2},{"source":24,"target":16,"weight":1},{"source":24,"target":18,"weight":2},{"source":24,"target":20,"weight":1},{"source":24,"target":21,"weight":1},{"source":24,"target":22,"weight":2},{"source":24,"target":23,"weight":1},{"source":24,"target":25,"weight":1},{"source":24,"target":27,"weight":1},{"source":25,"target":2,"weight":5},{"source":25,"target":16,"weight":4},{"source":25,"target":18,"weight":5},{"source":25,"target":20,"weight":2},{"source":25,"target":23,"weight":3},{"source":25,"target":214,"weight":3},{"source":26,"target":2,"weight":2},{"source":27,"target":2,"weight":4},{"source":27,"target":16,"weight":4},{"source":27,"target":18,"weight":4},{"source":27,"target":20,"weight":3},{"source":27,"target":21,"weight":4},{"source":27,"target":22,"weight":2},{"source":27,"target":23,"weight":2},{"source":27,"target":25,"weight":2},{"source":27,"target":214,"weight":1},{"source":27,"target":29,"weight":1},{"source":27,"target":30,"weight":1},{"source":28,"target":2,"weight":4},{"source":28,"target":16,"weight":4},{"source":28,"target":18,"weight":4},{"source":28,"target":20,"weight":3},{"source":28,"target":21,"weight":4},{"source":28,"target":22,"weight":3},{"source":28,"target":23,"weight":2},{"source":28,"target":25,"weight":3},{"source":28,"target":27,"weight":2},{"source":28,"target":214,"weight":2},{"source":28,"target":29,"weight":1},{"source":28,"target":30,"weight":1},{"source":29,"target":2,"weight":1},{"source":29,"target":16,"weight":1},{"source":29,"target":18,"weight":1},{"source":29,"target":21,"weight":1},{"source":29,"target":22,"weight":1},{"source":29,"target":25,"weight":1},{"source":29,"target":30,"weight":1},{"source":30,"target":2,"weight":1},{"source":30,"target":16,"weight":1},{"source":30,"target":18,"weight":1},{"source":30,"target":21,"weight":1},{"source":30,"target":22,"weight":1},{"source":30,"target":25,"weight":1},{"source":31,"target":2,"weight":2},{"source":32,"target":3,"weight":7},{"source":32,"target":41,"weight":1},{"source":33,"target":3,"weight":1},{"source":34,"target":3,"weight":3},{"source":35,"target":3,"weight":2},{"source":36,"target":3,"weight":1},{"source":36,"target":37,"weight":1},{"source":37,"target":3,"weight":1},{"source":38,"target":3,"weight":1},{"source":39,"target":3,"weight":1},{"source":39,"target":60,"weight":1},{"source":39,"target":79,"weight":1},{"source":39,"target":90,"weight":1},{"source":40,"target":3,"weight":1},{"source":40,"target":32,"weight":1},{"source":40,"target":41,"weight":1},{"source":41,"target":3,"weight":1},{"source":42,"target":3,"weight":1},{"source":42,"target":43,"weight":1},{"source":42,"target":44,"weight":1},{"source":43,"target":3,"weight":1},{"source":43,"target":44,"weight":1},{"source":44,"target":3,"weight":1},{"source":45,"target":3,"weight":1},{"source":45,"target":35,"weight":1},{"source":46,"target":3,"weight":2},{"source":46,"target":216,"weight":1},{"source":46,"target":47,"weight":1},{"source":47,"target":3,"weight":1},{"source":47,"target":216,"weight":1},{"source":48,"target":3,"weight":2},{"source":49,"target":3,"weight":1},{"source":49,"target":216,"weight":1},{"source":49,"target":50,"weight":1},{"source":50,"target":3,"weight":14},{"source":50,"target":216,"weight":1},{"source":51,"target":3,"weight":1},{"source":51,"target":218,"weight":1},{"source":52,"target":5,"weight":2},{"source":52,"target":54,"weight":1},{"source":52,"target":219,"weight":1},{"source":53,"target":5,"weight":2},{"source":53,"target":52,"weight":1},{"source":53,"target":54,"weight":1},{"source":53,"target":219,"weight":1},{"source":54,"target":219,"weight":1},{"source":55,"target":6,"weight":1},{"source":56,"target":8,"weight":2},{"source":57,"target":7,"weight":1},{"source":57,"target":8,"weight":1},{"source":57,"target":58,"weight":1},{"source":57,"target":59,"weight":1},{"source":57,"target":60,"weight":1},{"source":57,"target":61,"weight":1},{"source":57,"target":62,"weight":1},{"source":57,"target":63,"weight":1},{"source":57,"target":221,"weight":1},{"source":58,"target":7,"weight":1},{"source":58,"target":8,"weight":1},{"source":58,"target":59,"weight":1},{"source":58,"target":60,"weight":1},{"source":58,"target":61,"weight":1},{"source":58,"target":62,"weight":1},{"source":58,"target":63,"weight":1},{"source":58,"target":221,"weight":1},{"source":59,"target":7,"weight":1},{"source":59,"target":8,"weight":1},{"source":59,"target":10,"weight":1},{"source":59,"target":12,"weight":1},{"source":59,"target":39,"weight":1},{"source":59,"target":60,"weight":2},{"source":59,"target":61,"weight":1},{"source":59,"target":62,"weight":1},{"source":59,"target":63,"weight":1},{"source":59,"target":221,"weight":1},{"source":59,"target":68,"weight":1},{"source":59,"target":79,"weight":1},{"source":59,"target":90,"weight":1},{"source":59,"target":96,"weight":1},{"source":59,"target":113,"weight":1},{"source":59,"target":114,"weight":1},{"source":59,"target":119,"weight":1},{"source":59,"target":120,"weight":1},{"source":59,"target":130,"weight":1},{"source":60,"target":8,"weight":1},{"source":60,"target":61,"weight":1},{"source":60,"target":62,"weight":1},{"source":60,"target":63,"weight":1},{"source":60,"target":221,"weight":1},{"source":60,"target":79,"weight":1},{"source":60,"target":90,"weight":1},{"source":61,"target":8,"weight":1},{"source":61,"target":62,"weight":1},{"source":61,"target":63,"weight":1},{"source":61,"target":221,"weight":1},{"source":62,"target":63,"weight":1},{"source":62,"target":221,"weight":1},{"source":62,"target":69,"weight":3},{"source":63,"target":221,"weight":1},{"source":64,"target":7,"weight":1},{"source":65,"target":8,"weight":1},{"source":65,"target":10,"weight":5},{"source":65,"target":69,"weight":1},{"source":66,"target":7,"weight":1},{"source":66,"target":8,"weight":1},{"source":66,"target":10,"weight":1},{"source":66,"target":65,"weight":1},{"source":66,"target":67,"weight":1},{"source":66,"target":68,"weight":1},{"source":66,"target":69,"weight":1},{"source":67,"target":7,"weight":1},{"source":67,"target":8,"weight":1},{"source":67,"target":10,"weight":1},{"source":67,"target":65,"weight":1},{"source":67,"target":68,"weight":1},{"source":67,"target":69,"weight":1},{"source":68,"target":8,"weight":2},{"source":68,"target":10,"weight":8},{"source":68,"target":12,"weight":5},{"source":68,"target":65,"weight":1},{"source":68,"target":69,"weight":1},{"source":68,"target":97,"weight":1},{"source":68,"target":113,"weight":2},{"source":68,"target":114,"weight":1},{"source":68,"target":120,"weight":2},{"source":68,"target":121,"weight":2},{"source":68,"target":125,"weight":1},{"source":68,"target":126,"weight":1},{"source":68,"target":127,"weight":1},{"source":68,"target":231,"weight":1},{"source":68,"target":232,"weight":1},{"source":68,"target":138,"weight":1},{"source":69,"target":10,"weight":2},{"source":70,"target":7,"weight":1},{"source":70,"target":71,"weight":1},{"source":70,"target":72,"weight":1},{"source":70,"target":222,"weight":1},{"source":71,"target":7,"weight":2},{"source":71,"target":72,"weight":2},{"source":71,"target":222,"weight":1},{"source":71,"target":74,"weight":1},{"source":71,"target":223,"weight":1},{"source":72,"target":222,"weight":1},{"source":72,"target":74,"weight":1},{"source":72,"target":223,"weight":1},{"source":73,"target":7,"weight":1},{"source":73,"target":71,"weight":1},{"source":73,"target":72,"weight":1},{"source":73,"target":74,"weight":1},{"source":73,"target":223,"weight":1},{"source":74,"target":223,"weight":1},{"source":75,"target":8,"weight":1},{"source":75,"target":76,"weight":1},{"source":75,"target":77,"weight":1},{"source":75,"target":78,"weight":1},{"source":75,"target":79,"weight":1},{"source":75,"target":226,"weight":1},{"source":76,"target":8,"weight":1},{"source":76,"target":77,"weight":1},{"source":76,"target":78,"weight":1},{"source":76,"target":79,"weight":1},{"source":76,"target":226,"weight":1},{"source":77,"target":8,"weight":2},{"source":77,"target":56,"weight":1},{"source":77,"target":78,"weight":1},{"source":77,"target":79,"weight":1},{"source":77,"target":226,"weight":1},{"source":78,"target":8,"weight":1},{"source":78,"target":79,"weight":1},{"source":78,"target":226,"weight":1},{"source":79,"target":8,"weight":1},{"source":79,"target":226,"weight":1},{"source":80,"target":8,"weight":2},{"source":80,"target":79,"weight":1},{"source":81,"target":8,"weight":1},{"source":81,"target":69,"weight":1},{"source":82,"target":8,"weight":1},{"source":82,"target":83,"weight":1},{"source":83,"target":8,"weight":6},{"source":83,"target":39,"weight":1},{"source":83,"target":59,"weight":1},{"source":83,"target":60,"weight":1},{"source":83,"target":69,"weight":4},{"source":83,"target":79,"weight":1},{"source":83,"target":90,"weight":1},{"source":83,"target":91,"weight":1},{"source":84,"target":8,"weight":1},{"source":84,"target":69,"weight":1},{"source":84,"target":83,"weight":1},{"source":85,"target":8,"weight":1},{"source":85,"target":69,"weight":1},{"source":86,"target":39,"weight":1},{"source":86,"target":59,"weight":1},{"source":86,"target":60,"weight":1},{"source":86,"target":79,"weight":1},{"source":86,"target":83,"weight":1},{"source":86,"target":87,"weight":1},{"source":86,"target":88,"weight":1},{"source":86,"target":89,"weight":1},{"source":86,"target":90,"weight":1},{"source":87,"target":39,"weight":1},{"source":87,"target":59,"weight":1},{"source":87,"target":60,"weight":1},{"source":87,"target":79,"weight":1},{"source":87,"target":83,"weight":1},{"source":87,"target":88,"weight":1},{"source":87,"target":89,"weight":1},{"source":87,"target":90,"weight":1},{"source":88,"target":39,"weight":1},{"source":88,"target":59,"weight":1},{"source":88,"target":60,"weight":1},{"source":88,"target":79,"weight":1},{"source":88,"target":83,"weight":1},{"source":88,"target":89,"weight":1},{"source":88,"target":90,"weight":1},{"source":89,"target":39,"weight":1},{"source":89,"target":59,"weight":1},{"source":89,"target":60,"weight":1},{"source":89,"target":79,"weight":1},{"source":89,"target":83,"weight":1},{"source":89,"target":90,"weight":1},{"source":90,"target":79,"weight":1},{"source":91,"target":8,"weight":1},{"source":91,"target":69,"weight":1},{"source":92,"target":8,"weight":1},{"source":92,"target":62,"weight":1},{"source":92,"target":69,"weight":1},{"source":93,"target":8,"weight":1},{"source":93,"target":10,"weight":5},{"source":93,"target":12,"weight":6},{"source":93,"target":59,"weight":1},{"source":93,"target":68,"weight":4},{"source":93,"target":94,"weight":1},{"source":93,"target":95,"weight":1},{"source":93,"target":96,"weight":2},{"source":93,"target":97,"weight":1},{"source":93,"target":113,"weight":5},{"source":93,"target":114,"weight":1},{"source":93,"target":119,"weight":3},{"source":93,"target":120,"weight":2},{"source":93,"target":121,"weight":3},{"source":93,"target":128,"weight":1},{"source":93,"target":129,"weight":1},{"source":93,"target":130,"weight":1},{"source":93,"target":155,"weight":1},{"source":94,"target":8,"weight":1},{"source":94,"target":10,"weight":1},{"source":94,"target":12,"weight":1},{"source":94,"target":68,"weight":1},{"source":94,"target":95,"weight":1},{"source":94,"target":96,"weight":1},{"source":94,"target":97,"weight":1},{"source":95,"target":8,"weight":1},{"source":95,"target":10,"weight":1},{"source":95,"target":12,"weight":1},{"source":95,"target":68,"weight":1},{"source":95,"target":96,"weight":1},{"source":95,"target":97,"weight":1},{"source":96,"target":8,"weight":1},{"source":96,"target":10,"weight":2},{"source":96,"target":12,"weight":1},{"source":96,"target":68,"weight":3},{"source":96,"target":97,"weight":1},{"source":96,"target":114,"weight":1},{"source":96,"target":231,"weight":1},{"source":97,"target":12,"weight":1},{"source":98,"target":8,"weight":1},{"source":99,"target":8,"weight":1},{"source":99,"target":69,"weight":1},{"source":99,"target":100,"weight":1},{"source":100,"target":69,"weight":1},{"source":101,"target":8,"weight":1},{"source":102,"target":12,"weight":1},{"source":102,"target":229,"weight":1},{"source":102,"target":113,"weight":1},{"source":102,"target":151,"weight":1},{"source":103,"target":9,"weight":3},{"source":103,"target":105,"weight":1},{"source":103,"target":106,"weight":1},{"source":103,"target":107,"weight":1},{"source":103,"target":108,"weight":1},{"source":104,"target":9,"weight":1},{"source":104,"target":103,"weight":1},{"source":104,"target":105,"weight":1},{"source":105,"target":9,"weight":1},{"source":106,"target":9,"weight":1},{"source":106,"target":107,"weight":1},{"source":106,"target":108,"weight":1},{"source":107,"target":108,"weight":1},{"source":108,"target":12,"weight":2},{"source":108,"target":149,"weight":1},{"source":109,"target":210,"weight":4},{"source":110,"target":210,"weight":2},{"source":111,"target":210,"weight":1},{"source":112,"target":10,"weight":2},{"source":112,"target":69,"weight":1},{"source":113,"target":151,"weight":1},{"source":114,"target":10,"weight":1},{"source":114,"target":115,"weight":1},{"source":115,"target":10,"weight":1},{"source":116,"target":10,"weight":1},{"source":117,"target":10,"weight":1},{"source":117,"target":203,"weight":1},{"source":117,"target":204,"weight":1},{"source":117,"target":205,"weight":1},{"source":117,"target":206,"weight":1},{"source":117,"target":207,"weight":1},{"source":117,"target":246,"weight":1},{"source":118,"target":10,"weight":2},{"source":118,"target":12,"weight":3},{"source":118,"target":68,"weight":3},{"source":118,"target":93,"weight":2},{"source":118,"target":113,"weight":2},{"source":118,"target":119,"weight":3},{"source":118,"target":120,"weight":2},{"source":118,"target":121,"weight":2},{"source":118,"target":138,"weight":1},{"source":119,"target":10,"weight":3},{"source":119,"target":12,"weight":6},{"source":119,"target":68,"weight":5},{"source":119,"target":96,"weight":1},{"source":119,"target":113,"weight":3},{"source":119,"target":114,"weight":1},{"source":119,"target":120,"weight":2},{"source":119,"target":121,"weight":2},{"source":119,"target":130,"weight":1},{"source":119,"target":138,"weight":2},{"source":120,"target":12,"weight":5},{"source":120,"target":14,"weight":1},{"source":120,"target":113,"weight":5},{"source":120,"target":121,"weight":2},{"source":120,"target":172,"weight":1},{"source":120,"target":173,"weight":1},{"source":121,"target":12,"weight":3},{"source":121,"target":113,"weight":3},{"source":122,"target":10,"weight":1},{"source":122,"target":68,"weight":1},{"source":122,"target":123,"weight":1},{"source":122,"target":124,"weight":1},{"source":122,"target":125,"weight":1},{"source":122,"target":126,"weight":1},{"source":122,"target":127,"weight":1},{"source":123,"target":10,"weight":1},{"source":123,"target":68,"weight":1},{"source":123,"target":124,"weight":1},{"source":123,"target":125,"weight":1},{"source":123,"target":126,"weight":1},{"source":123,"target":127,"weight":1},{"source":124,"target":10,"weight":1},{"source":124,"target":68,"weight":1},{"source":124,"target":125,"weight":1},{"source":124,"target":126,"weight":1},{"source":124,"target":127,"weight":1},{"source":125,"target":10,"weight":1},{"source":125,"target":126,"weight":1},{"source":125,"target":127,"weight":1},{"source":125,"target":240,"weight":1},{"source":126,"target":10,"weight":1},{"source":126,"target":127,"weight":1},{"source":127,"target":10,"weight":1},{"source":128,"target":10,"weight":1},{"source":128,"target":59,"weight":1},{"source":128,"target":68,"weight":1},{"source":128,"target":96,"weight":1},{"source":128,"target":114,"weight":1},{"source":128,"target":119,"weight":1},{"source":128,"target":129,"weight":1},{"source":128,"target":130,"weight":1},{"source":129,"target":10,"weight":1},{"source":129,"target":11,"weight":1},{"source":129,"target":12,"weight":4},{"source":129,"target":59,"weight":1},{"source":129,"target":68,"weight":1},{"source":129,"target":96,"weight":1},{"source":129,"target":113,"weight":2},{"source":129,"target":114,"weight":1},{"source":129,"target":119,"weight":3},{"source":129,"target":130,"weight":2},{"source":129,"target":138,"weight":2},{"source":130,"target":10,"weight":1},{"source":130,"target":11,"weight":1},{"source":130,"target":12,"weight":5},{"source":130,"target":14,"weight":1},{"source":130,"target":68,"weight":1},{"source":130,"target":96,"weight":1},{"source":130,"target":113,"weight":1},{"source":130,"target":114,"weight":1},{"source":130,"target":120,"weight":1},{"source":130,"target":138,"weight":1},{"source":130,"target":161,"weight":1},{"source":131,"target":10,"weight":1},{"source":132,"target":11,"weight":6},{"source":133,"target":113,"weight":1},{"source":134,"target":11,"weight":1},{"source":134,"target":132,"weight":1},{"source":135,"target":234,"weight":1},{"source":136,"target":11,"weight":1},{"source":136,"target":133,"weight":1},{"source":137,"target":11,"weight":2},{"source":137,"target":235,"weight":1},{"source":138,"target":12,"weight":3},{"source":138,"target":113,"weight":3},{"source":139,"target":135,"weight":1},{"source":140,"target":11,"weight":1},{"source":141,"target":12,"weight":1},{"source":141,"target":113,"weight":1},{"source":141,"target":142,"weight":1},{"source":141,"target":143,"weight":1},{"source":142,"target":12,"weight":1},{"source":142,"target":113,"weight":1},{"source":142,"target":143,"weight":1},{"source":143,"target":12,"weight":1},{"source":143,"target":113,"weight":1},{"source":144,"target":12,"weight":1},{"source":144,"target":113,"weight":1},{"source":144,"target":145,"weight":1},{"source":144,"target":146,"weight":1},{"source":144,"target":147,"weight":1},{"source":145,"target":12,"weight":1},{"source":145,"target":113,"weight":1},{"source":145,"target":146,"weight":1},{"source":145,"target":147,"weight":1},{"source":146,"target":12,"weight":2},{"source":146,"target":113,"weight":2},{"source":146,"target":147,"weight":1},{"source":147,"target":113,"weight":1},{"source":148,"target":12,"weight":1},{"source":148,"target":113,"weight":1},{"source":148,"target":120,"weight":1},{"source":149,"target":12,"weight":1},{"source":150,"target":12,"weight":1},{"source":150,"target":120,"weight":1},{"source":151,"target":113,"weight":1},{"source":152,"target":12,"weight":1},{"source":152,"target":153,"weight":1},{"source":153,"target":12,"weight":1},{"source":154,"target":12,"weight":1},{"source":154,"target":113,"weight":1},{"source":155,"target":12,"weight":1},{"source":155,"target":113,"weight":1},{"source":155,"target":121,"weight":1},{"source":156,"target":12,"weight":1},{"source":156,"target":113,"weight":1},{"source":157,"target":12,"weight":1},{"source":157,"target":113,"weight":1},{"source":157,"target":146,"weight":1},{"source":157,"target":158,"weight":1},{"source":158,"target":12,"weight":1},{"source":158,"target":113,"weight":1},{"source":158,"target":146,"weight":1},{"source":159,"target":12,"weight":3},{"source":159,"target":115,"weight":1},{"source":160,"target":12,"weight":1},{"source":161,"target":12,"weight":1},{"source":162,"target":12,"weight":1},{"source":162,"target":163,"weight":1},{"source":163,"target":113,"weight":1},{"source":164,"target":12,"weight":1},{"source":164,"target":113,"weight":1},{"source":165,"target":12,"weight":1},{"source":165,"target":113,"weight":1},{"source":165,"target":163,"weight":1},{"source":166,"target":12,"weight":1},{"source":166,"target":113,"weight":1},{"source":166,"target":151,"weight":1},{"source":166,"target":167,"weight":1},{"source":167,"target":12,"weight":1},{"source":167,"target":113,"weight":1},{"source":167,"target":151,"weight":1},{"source":168,"target":13,"weight":1},{"source":169,"target":14,"weight":1},{"source":169,"target":113,"weight":1},{"source":169,"target":120,"weight":1},{"source":169,"target":170,"weight":1},{"source":169,"target":171,"weight":1},{"source":169,"target":172,"weight":1},{"source":169,"target":173,"weight":1},{"source":169,"target":185,"weight":1},{"source":170,"target":14,"weight":1},{"source":170,"target":113,"weight":1},{"source":170,"target":120,"weight":1},{"source":170,"target":171,"weight":1},{"source":170,"target":172,"weight":2},{"source":170,"target":173,"weight":2},{"source":171,"target":14,"weight":3},{"source":171,"target":113,"weight":1},{"source":171,"target":120,"weight":1},{"source":171,"target":172,"weight":2},{"source":171,"target":173,"weight":2},{"source":171,"target":191,"weight":1},{"source":172,"target":113,"weight":1},{"source":172,"target":173,"weight":3},{"source":173,"target":113,"weight":1},{"source":174,"target":14,"weight":1},{"source":175,"target":13,"weight":1},{"source":176,"target":14,"weight":1},{"source":176,"target":177,"weight":1},{"source":177,"target":14,"weight":1},{"source":178,"target":14,"weight":1},{"source":178,"target":125,"weight":1},{"source":178,"target":179,"weight":1},{"source":178,"target":180,"weight":1},{"source":178,"target":181,"weight":1},{"source":178,"target":240,"weight":1},{"source":179,"target":14,"weight":1},{"source":179,"target":125,"weight":1},{"source":179,"target":180,"weight":1},{"source":179,"target":181,"weight":1},{"source":179,"target":240,"weight":1},{"source":180,"target":14,"weight":1},{"source":180,"target":125,"weight":1},{"source":180,"target":181,"weight":1},{"source":180,"target":240,"weight":1},{"source":181,"target":125,"weight":1},{"source":181,"target":240,"weight":1},{"source":182,"target":14,"weight":1},{"source":182,"target":183,"weight":1},{"source":183,"target":14,"weight":1},{"source":184,"target":14,"weight":1},{"source":184,"target":185,"weight":1},{"source":184,"target":186,"weight":1},{"source":185,"target":14,"weight":2},{"source":185,"target":186,"weight":1},{"source":186,"target":199,"weight":1},{"source":186,"target":244,"weight":1},{"source":187,"target":14,"weight":1},{"source":187,"target":171,"weight":1},{"source":187,"target":172,"weight":1},{"source":187,"target":173,"weight":1},{"source":187,"target":188,"weight":1},{"source":187,"target":189,"weight":1},{"source":187,"target":190,"weight":1},{"source":187,"target":191,"weight":1},{"source":188,"target":14,"weight":1},{"source":188,"target":171,"weight":1},{"source":188,"target":172,"weight":1},{"source":188,"target":173,"weight":1},{"source":188,"target":189,"weight":1},{"source":188,"target":190,"weight":1},{"source":188,"target":191,"weight":1},{"source":189,"target":14,"weight":1},{"source":189,"target":171,"weight":1},{"source":189,"target":172,"weight":1},{"source":189,"target":173,"weight":1},{"source":189,"target":190,"weight":1},{"source":189,"target":191,"weight":1},{"source":190,"target":14,"weight":1},{"source":190,"target":171,"weight":1},{"source":190,"target":172,"weight":1},{"source":190,"target":173,"weight":1},{"source":190,"target":191,"weight":1},{"source":191,"target":14,"weight":3},{"source":191,"target":171,"weight":1},{"source":191,"target":172,"weight":1},{"source":191,"target":173,"weight":2},{"source":192,"target":233,"weight":1},{"source":193,"target":14,"weight":1},{"source":194,"target":14,"weight":1},{"source":194,"target":195,"weight":1},{"source":194,"target":243,"weight":1},{"source":195,"target":243,"weight":1},{"source":196,"target":14,"weight":2},{"source":197,"target":14,"weight":1},{"source":197,"target":198,"weight":1},{"source":198,"target":14,"weight":1},{"source":199,"target":244,"weight":1},{"source":200,"target":15,"weight":2},{"source":201,"target":15,"weight":1},{"source":201,"target":117,"weight":1},{"source":201,"target":202,"weight":1},{"source":201,"target":203,"weight":1},{"source":201,"target":204,"weight":1},{"source":201,"target":205,"weight":1},{"source":201,"target":206,"weight":1},{"source":201,"target":207,"weight":1},{"source":201,"target":246,"weight":1},{"source":202,"target":15,"weight":1},{"source":202,"target":117,"weight":1},{"source":202,"target":203,"weight":1},{"source":202,"target":204,"weight":1},{"source":202,"target":205,"weight":1},{"source":202,"target":206,"weight":1},{"source":202,"target":207,"weight":1},{"source":202,"target":246,"weight":1},{"source":203,"target":204,"weight":1},{"source":203,"target":205,"weight":1},{"source":203,"target":206,"weight":1},{"source":203,"target":207,"weight":1},{"source":203,"target":246,"weight":1},{"source":204,"target":205,"weight":1},{"source":204,"target":206,"weight":1},{"source":204,"target":207,"weight":1},{"source":204,"target":246,"weight":1},{"source":205,"target":206,"weight":1},{"source":205,"target":207,"weight":1},{"source":205,"target":246,"weight":1},{"source":206,"target":207,"weight":1},{"source":206,"target":246,"weight":1},{"source":207,"target":246,"weight":1},{"source":208,"target":247,"weight":1},{"source":209,"target":15,"weight":1},{"source":209,"target":207,"weight":1}],"nodes":[{"orcid":"0000-0002-2700-4605","name":"Simon Goring"},{"orcid":"0000-0003-1315-3818","name":"Lauren Buckley"},{"orcid":"0000-0002-3153-4297","name":"Daniel Gruner"},{"orcid":"0000-0001-6171-7855","name":"Craig Stow"},{"orcid":"0000-0003-3952-2589","name":"Alexandra Thorn"},{"orcid":"0000-0002-9617-9433","name":"Emily Read"},{"orcid":"0000-0002-3925-461X","name":"Marlow Pellatt"},{"orcid":"0000-0001-8345-9252","name":"Sebastien Joannin"},{"orcid":"0000-0002-2774-6705","name":"Laura Sadori"},{"orcid":"0000-0003-1656-1091","name":"Katerina Kouli"},{"orcid":"0000-0002-6779-6053","name":"Boris Vannière"},{"orcid":"0000-0002-1998-3508","name":"Andrew Scott"},{"orcid":"0000-0001-7657-5685","name":"Patrick Bartlein"},{"orcid":"0000-0002-5795-4345","name":"J Andrés Christen"},{"orcid":"0000-0002-5680-1515","name":"Maarten Blaauw"},{"orcid":"0000-0003-4048-177X","name":"Jessica Blois"},{"orcid":"0000-0001-6780-9259","name":"Eric Seabloom"},{"orcid":"0000-0002-0068-7485","name":"Matthew Bracken"},{"orcid":"0000-0003-2259-5853","name":"Elizabeth Borer"},{"orcid":"0000-0002-1460-2155","name":"James Elser"},{"orcid":"0000-0002-3404-9174","name":"W Stanley Harpole"},{"orcid":"0000-0001-6026-8912","name":"Jennifer Firn"},{"orcid":"0000-0002-1633-1993","name":"Charles Mitchell"},{"orcid":"0000-0001-7599-3201","name":"Yvonne Buckley"},{"orcid":"0000-0002-2281-3091","name":"Robert Heckman"},{"orcid":"0000-0002-8291-6316","name":"Philip Fay"},{"orcid":"0000-0002-3632-7625","name":"John Parker"},{"orcid":"0000-0003-3051-7724","name":"Eric Lind"},{"orcid":"0000-0003-2361-4286","name":"Peter Wragg"},{"orcid":"0000-0002-3586-8526","name":"Maria Caldeira"},{"orcid":"0000-0003-2338-4564","name":"Aveliina Helm"},{"orcid":"0000-0002-0233-1757","name":"Karthik Ram"},{"orcid":"0000-0002-3576-2529","name":"Andrew Gronewold"},{"orcid":"0000-0003-3859-3035","name":"Nancy Morehead"},{"orcid":"0000-0002-6009-0146","name":"Katherine Webster"},{"orcid":"0000-0002-6017-4243","name":"Doran Mason"},{"orcid":"0000-0003-0823-8008","name":"Shana Sundstrom"},{"orcid":"0000-0003-0976-3197","name":"Kirsty Nash"},{"orcid":"0000-0002-7282-6667","name":"Edward Rutherford"},{"orcid":"0000-0003-3031-621X","name":"NA NA"},{"orcid":"0000-0003-2189-0914","name":"Brent Lofgren"},{"orcid":"0000-0002-2145-4592","name":"Vincent Fortin"},{"orcid":"0000-0002-0433-9066","name":"James Liebig"},{"orcid":"0000-0003-1358-8475","name":"Henry Vanderploeg"},{"orcid":"0000-0002-7992-5422","name":"Steven Pothoven"},{"orcid":"0000-0002-9746-5351","name":"Aaron Adamack"},{"orcid":"0000-0002-2784-8269","name":"Donald Scavia"},{"orcid":"0000-0001-8181-1080","name":"Yong Liu"},{"orcid":"0000-0001-6034-7514","name":"John Walker"},{"orcid":"0000-0001-6939-6777","name":"Dongil Seo"},{"orcid":"0000-0002-5121-1110","name":"Mark Borsuk"},{"orcid":"0000-0003-0173-0112","name":"Garry Peterson"},{"orcid":"0000-0002-3888-6631","name":"Jordan Read"},{"orcid":"0000-0002-8602-5510","name":"Luke Winslow"},{"orcid":"0000-0001-8386-4354","name":"Matthew Hipsey"},{"orcid":"0000-0001-7614-2855","name":"Janice Brahney"},{"orcid":"0000-0003-1275-6158","name":"Elda Russo Ermolli"},{"orcid":"0000-0003-3755-5264","name":"Inga Labuhn"},{"orcid":"0000-0001-8918-0690","name":"William Fletcher"},{"orcid":"0000-0001-5685-2390","name":"Simon Connor"},{"orcid":"0000-0002-3055-9396","name":"Filipa Naughton"},{"orcid":"0000-0003-3858-4462","name":"Andrea Borsato"},{"orcid":"0000-0001-7867-031X","name":"Russell Drysdale"},{"orcid":"0000-0001-7357-584X","name":"Ana Moreno"},{"orcid":"0000-0001-7834-5111","name":"Adrian Balasescu"},{"orcid":"0000-0003-4193-2157","name":"Adrian Gilli"},{"orcid":"0000-0002-0370-5802","name":"Alexander Francke"},{"orcid":"0000-0003-4400-679X","name":"Stephanie Desprat"},{"orcid":"0000-0002-9632-2009","name":"Daniele Colombaroli"},{"orcid":"0000-0002-7080-9599","name":"Giovanni Zanchetta"},{"orcid":"0000-0002-0064-6464","name":"Angela Girone"},{"orcid":"0000-0003-4917-1786","name":"Patrizia Maiorano"},{"orcid":"0000-0001-6239-0786","name":"Maria Marino"},{"orcid":"0000-0003-4583-2380","name":"Diana BARRA"},{"orcid":"0000-0003-3282-7910","name":"Lucilla Capotondi"},{"orcid":"0000-0002-1587-9842","name":"Mariano UCCHESU"},{"orcid":"0000-0003-2273-2336","name":"Giovanna Bosi"},{"orcid":"0000-0003-0667-1027","name":"emilia allevato"},{"orcid":"0000-0002-4850-7113","name":"Marta Mazzanti"},{"orcid":"0000-0001-6138-4165","name":"Anna Maria Mercuri"},{"orcid":"0000-0002-8420-5454","name":"Michela Marignani"},{"orcid":"0000-0003-2164-7826","name":"Ilaria Mazzini"},{"orcid":"0000-0002-6998-1615","name":"cristina NA"},{"orcid":"0000-0001-9822-9767","name":"Alessia Masi"},{"orcid":"0000-0001-8593-2621","name":"Francesca Balossi Restelli"},{"orcid":"0000-0003-1482-2630","name":"Monica Bini"},{"orcid":"0000-0001-9101-5299","name":"Ana Ejarque"},{"orcid":"0000-0003-4759-6406","name":"Assunta Florenzano"},{"orcid":"0000-0001-9605-8204","name":"Petr Kuneš"},{"orcid":"0000-0002-4766-6913","name":"Michael Grant"},{"orcid":"0000-0002-8297-2385","name":"Siim Veski"},{"orcid":"0000-0001-7435-1426","name":"Anna Maria Siani"},{"orcid":"0000-0003-4834-3056","name":"Vincenzo Pascucci"},{"orcid":"0000-0002-1621-3911","name":"Anne-Laure Daniau"},{"orcid":"0000-0002-6408-0850","name":"ROBERTA PINI"},{"orcid":"0000-0001-5726-2536","name":"Graciela Gil-Romera"},{"orcid":"0000-0002-8297-0574","name":"Walter Finsinger"},{"orcid":"0000-0002-6949-4382","name":"Jose Carrion"},{"orcid":"0000-0002-4552-4081","name":"Andrea Brandolini"},{"orcid":"0000-0002-8935-335X","name":"Daniela Mele"},{"orcid":"0000-0001-6927-4905","name":"Pierfrancesco Dellino"},{"orcid":"0000-0002-9618-2798","name":"Felix Bittmann"},{"orcid":"0000-0003-0822-5880","name":"Masa Kageyama"},{"orcid":"0000-0002-9809-1902","name":"Margarita Dimiza"},{"orcid":"0000-0001-9371-6726","name":"George Kontakiotis"},{"orcid":"0000-0002-9473-4309","name":"P. Graham Mortyn"},{"orcid":"0000-0001-9795-5337","name":"Gianluca Marino"},{"orcid":"0000-0002-5576-0301","name":"Patrizia Ziveri"},{"orcid":"0000-0002-5513-2647","name":"Antoni Rosell-Melé"},{"orcid":"0000-0003-3592-5196","name":"Carlos Gaitan"},{"orcid":"0000-0003-3541-2470","name":"Diana Allen"},{"orcid":"0000-0002-4557-1283","name":"Joseph Shea"},{"orcid":"0000-0002-8706-9902","name":"Fabien Arnaud"},{"orcid":"0000-0001-5687-1903","name":"Sandy Harrison"},{"orcid":"0000-0002-7331-2246","name":"Richard Bradshaw"},{"orcid":"0000-0001-9919-7613","name":"Jed Kaplan"},{"orcid":"0000-0003-0072-1062","name":"Simon Hutchinson"},{"orcid":"0000-0003-1211-5545","name":"Paul Henne"},{"orcid":"0000-0002-0007-4785","name":"guy robinson"},{"orcid":"0000-0001-8743-3949","name":"Daniel Gavin"},{"orcid":"0000-0002-6810-1911","name":"Simon Brewer"},{"orcid":"0000-0001-5802-6535","name":"Simon Haberle"},{"orcid":"0000-0002-0708-8629","name":"Sena Akçer Ön"},{"orcid":"0000-0003-4015-7398","name":"Johannes Werner"},{"orcid":"0000-0003-1417-9657","name":"Thomas Felis"},{"orcid":"0000-0003-2214-7057","name":"Blas Valero Garcés"},{"orcid":"0000-0003-0724-1790","name":"Gerardo Benito"},{"orcid":"0000-0002-3845-7458","name":"RICARDO FRANCISCO GARCIA HERRERA"},{"orcid":"0000-0001-8938-5733","name":"Cassandra Rowe"},{"orcid":"0000-0001-5396-9956","name":"Philip Higuera"},{"orcid":"0000-0002-6483-013X","name":"Thomas Minckley"},{"orcid":"0000-0001-9077-9182","name":"Jean-Michel Carozza"},{"orcid":"0000-0003-4868-5232","name":"Fabien Kenig"},{"orcid":"0000-0001-7754-3036","name":"Paulo Artaxo"},{"orcid":"0000-0002-8497-0615","name":"Wesley Fraser"},{"orcid":"0000-0003-1801-8703","name":"Michael Bird"},{"orcid":"0000-0001-7268-2184","name":"Thomas Swetnam"},{"orcid":"0000-0002-5923-0404","name":"Selena Smith"},{"orcid":"0000-0002-6632-1507","name":"Christopher Carcaillet"},{"orcid":"0000-0002-7588-9006","name":"Iain Young"},{"orcid":"0000-0001-7980-6346","name":"JIH-PAI LIN"},{"orcid":"0000-0002-2255-8625","name":"Eric Guilyardi"},{"orcid":"0000-0002-2258-0486","name":"Gavin Schmidt"},{"orcid":"0000-0003-0657-2969","name":"Axel Timmermann"},{"orcid":"0000-0001-7513-153X","name":"Natalia Vazquez Riveiros"},{"orcid":"0000-0001-9302-4180","name":"Alexander Archibald"},{"orcid":"0000-0001-5602-7956","name":"Sönke Zaehle"},{"orcid":"0000-0002-5914-8531","name":"Eric Wolff"},{"orcid":"0000-0002-7471-8854","name":"Ines Hessler"},{"orcid":"0000-0002-2873-997X","name":"Natalie Mahowald"},{"orcid":"0000-0002-1635-5469","name":"Carrie Morrill"},{"orcid":"0000-0001-8296-381X","name":"Valérie Masson-Delmotte"},{"orcid":"0000-0002-8554-2727","name":"Claire Ebert"},{"orcid":"0000-0003-1437-7039","name":"Norbert Marwan"},{"orcid":"0000-0003-1413-4969","name":"Douglas Kelley"},{"orcid":"0000-0001-5314-1331","name":"Solomon Buckman"},{"orcid":"0000-0001-8264-0869","name":"Guy Midgley"},{"orcid":"0000-0002-2189-1995","name":"Guy Schurgers"},{"orcid":"0000-0001-5328-819X","name":"Kostas Tsigaridis"},{"orcid":"0000-0002-8856-4964","name":"Noah Diffenbaugh"},{"orcid":"0000-0001-7134-487X","name":"Edwin Maurer"},{"orcid":"0000-0001-5180-5325","name":"Michael Sawada"},{"orcid":"0000-0002-8656-5808","name":"Stephen Willis"},{"orcid":"0000-0002-9205-5812","name":"Wolfgang Cramer"},{"orcid":"0000-0002-5141-3679","name":"Dmitrii Sevastyanov"},{"orcid":"0000-0002-3338-5627","name":"Ulrich von Grafenstein"},{"orcid":"0000-0003-2619-1434","name":"Anthony Broccoli"},{"orcid":"0000-0001-6944-4038","name":"Marie-France Loutre"},{"orcid":"0000-0001-8078-2257","name":"Abel Palafox"},{"orcid":"0000-0002-1579-0178","name":"Gael Le Roux"},{"orcid":"0000-0002-1470-8849","name":"Jukka Alm"},{"orcid":"0000-0001-8039-1790","name":"Graeme Swindles"},{"orcid":"0000-0002-9857-5632","name":"Fraser Mitchell"},{"orcid":"0000-0003-3464-4536","name":"Dan Charman"},{"orcid":"0000-0002-4364-6085","name":"Anders Svensson"},{"orcid":"0000-0002-9278-1777","name":"Colin Fox"},{"orcid":"0000-0002-3800-6331","name":"Zachary Calamari"},{"orcid":"0000-0002-5163-4113","name":"John Demboski"},{"orcid":"0000-0002-2928-2836","name":"Roberto Bao"},{"orcid":"0000-0003-3532-9466","name":"Sergi Pla-Rabes"},{"orcid":"0000-0003-4215-5038","name":"Alberto Saez"},{"orcid":"0000-0001-8570-7838","name":"Santiago Giralt"},{"orcid":"0000-0002-7157-9860","name":"Erik de Boer"},{"orcid":"0000-0002-2203-2076","name":"Claudia Baider"},{"orcid":"0000-0001-8249-2587","name":"mohammed allan"},{"orcid":"0000-0002-0979-6397","name":"Francois De Vleeschouwer"},{"orcid":"0000-0002-7900-309X","name":"Richard Bindler"},{"orcid":"0000-0003-4556-9148","name":"Phil Stastney"},{"orcid":"0000-0001-7867-015X","name":"Oliver Pritchard"},{"orcid":"0000-0002-9237-1364","name":"Thomas Roland"},{"orcid":"0000-0002-3547-2425","name":"Ian Lawson"},{"orcid":"0000-0003-1014-3454","name":"Gill Plunkett"},{"orcid":"0000-0002-2547-6019","name":"David James Lowe"},{"orcid":"0000-0001-6114-0400","name":"Jostein Bakke"},{"orcid":"0000-0003-3164-4274","name":"Jasper Moernaut"},{"orcid":"0000-0002-1625-2080","name":"Marc De Batist"},{"orcid":"0000-0003-0999-7233","name":"Siwan Davies"},{"orcid":"0000-0001-5072-2755","name":"Meagan Gonneea"},{"orcid":"0000-0003-4519-3320","name":"Geoffrey Ellis"},{"orcid":"0000-0002-2584-8388","name":"William Shotyk"},{"orcid":"0000-0002-0663-6902","name":"Jenny McGuire"},{"orcid":"0000-0003-3847-2591","name":"YI-HSIN TSAI"},{"orcid":"0000-0002-5040-3911","name":"Frédérik Saltré"},{"orcid":"0000-0002-8698-7656","name":"Nicholas Matzke"},{"orcid":"0000-0001-6889-1733","name":"Guillaume de Lafontaine"},{"orcid":"0000-0002-4464-8453","name":"Paul Gugger"},{"orcid":"0000-0003-2157-5965","name":"Michael Ashcroft"},{"orcid":"0000-0003-1911-8407","name":"Matthew Fitzpatrick"},{"orcid":"0000-0002-0390-8044","name":"Jussi Eronen"},{"orcid":"0000-0001-6257-6951","name":"Phoebe Zarnetske"},{"orcid":"0000-0002-8025-3790","name":"Alex Cannon"},{"orcid":"0000-0002-5678-9907","name":"Allen Hurlbert"},{"orcid":"0000-0001-6992-3522","name":"Richard Fox"},{"orcid":"0000-0002-5874-0138","name":"Meelis Pärtel"},{"orcid":"0000-0002-0193-2892","name":"Scott Collins"},{"orcid":"0000-0002-5038-1046","name":"Spencer Behmer"},{"orcid":"0000-0001-5359-8737","name":"George Arhonditsis"},{"orcid":"0000-0002-3683-2437","name":"Scott Doney"},{"orcid":"0000-0001-6369-9339","name":"Pablo Marquet"},{"orcid":"0000-0001-8393-1940","name":"Chin Wu"},{"orcid":"0000-0003-4576-7849","name":"Werner Kurz"},{"orcid":"0000-0001-8238-7488","name":"Maria Fernanda Sanchez Goñi"},{"orcid":"0000-0002-5506-8753","name":"Paola PETROSINO"},{"orcid":"0000-0001-5351-1486","name":"Ismar CNR"},{"orcid":"0000-0001-9513-2492","name":"Christophe Lecuyer"},{"orcid":"0000-0002-1033-4114","name":"Aldo Marchetto"},{"orcid":"0000-0003-2798-9341","name":"ROSARIA RINALDI"},{"orcid":"0000-0003-0818-3959","name":"Carlo RICOTTA"},{"orcid":"0000-0001-7800-8764","name":"Massimo MATTEI"},{"orcid":"0000-0001-9921-7872","name":"Vendramin Giovanni G"},{"orcid":"0000-0003-0358-506X","name":"Edward Mitchell"},{"orcid":"0000-0002-2954-8809","name":"Andre F. Lotter"},{"orcid":"0000-0003-4233-0094","name":"Harald Bugmann"},{"orcid":"0000-0001-7565-0743","name":"Colin Wilson"},{"orcid":"0000-0002-6671-8766","name":"Colin Snape"},{"orcid":"0000-0003-3116-7463","name":"Philip Donoghue"},{"orcid":"0000-0002-0483-2109","name":"Heike Knicker"},{"orcid":"0000-0002-5604-7719","name":"Jorge Velasco-Hernandez"},{"orcid":"0000-0002-7655-6254","name":"FABRIZIO RUGGERI"},{"orcid":"0000-0003-2160-4148","name":"Jorge Soberon"},{"orcid":"0000-0002-9961-105X","name":"Valentí Rull"},{"orcid":"0000-0003-0429-1530","name":"Lamentowicz Mariusz"},{"orcid":"0000-0003-1115-5166","name":"Melanie Leng"},{"orcid":"0000-0002-8683-1854","name":"Jaap Sinninghe Damste"},{"orcid":"0000-0003-0430-5760","name":"Antonio Martínez Cortizas"},{"orcid":"0000-0003-4135-2881","name":"Diego Nieto Lugilde"},{"orcid":"0000-0002-4722-3303","name":"Alycia Stigall"},{"orcid":"0000-0002-2954-8905","name":"Scott Wing"},{"orcid":"0000-0003-2873-4551","name":"Alejandro Ordonez"},{"orcid":"0000-0002-6523-6562","name":"Robert Feranec"}]}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke: #666;
}
circle {
fill: #ccc;
stroke: #333;
stroke-width: 1.5px;
}
simon_circle {
fill: #d8b;
stroke: #333;
stroke-width: 1.5px;
}
text {
font: 12px sans-serif;
pointer-events: none;
text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}
div.tooltip {
position: absolute;
text-align: center;
max-width: 200px;
height: 28px;
padding: 4px;
font: 12px sans-serif;
background: lightsteelblue;
border: 0px;
border-radius: 0px;
/* pointer-events: none; This line needs to be removed */
}
</style>
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<script>
var width = 960,
height = 500,
padding = 1.5;
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(30)
.size([width, height]);
// Define 'div' for tooltips
var div = d3.select("body")
.append("div") // declare the tooltip div
.attr("class", "tooltip") // apply the 'tooltip' class
.style("opacity", 0); // set the opacity to nil
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("https://gist.githubusercontent.com/SimonGoring/6d499c40e8f222d2146d/raw/78cc73f3c52848141ab49a9d2410bf7c77f91fc7/authors.json", function(error, graph) {
if (error) throw error;
force
.nodes(graph.nodes)
.links(graph.links)
.linkStrength(function(d){return d.source.weight / 48})
.friction(0.9)
.linkDistance(20)
.charge(-50)
.gravity(0.2)
.theta(0.8)
.alpha(0.1)
.start();
var link = svg.selectAll(".link")
.data(graph.links)
.enter().append("line")
.attr("class", "link")
.attr("stroke", "#666")
.attr("stroke-width", function(d) {
return d.source.weight / 10 + "px"; });
var node = svg.selectAll(".node")
.data(graph.nodes)
.enter().append("circle")
.attr("class", "node")
.attr("r", 5)
.call(force.drag)
.on("mouseover", mouseover)
.on("mouseout", mouseout)
.on("mousedown", clickbox);
node.append("title")
.text(function(d) { return d.name + '\n' + 'Click for ORCiD' });
// Obtain the position of the nodes & links every 'tick', as the layout
// advances through the force simulation.
// see explanation here:
// http://stackoverflow.com/questions/28745398/why-do-we-need-force-ontick-in-d3
// The simulation is '.start()'ed, it 'ticks' through and then it's `stop`ped
// although in practice we don't `stop` it.
force.on("tick", function() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
node.attr("cx", function(d) { return d.x; })
.attr("cy", function(d) { return d.y; });
});
function clickbox(d){
//d3.select(this)
// .attr("r", 16);
div.transition()
.duration(1)
.style("opacity", 0);
div.transition()
.duration(1)
.style("opacity", .9);
div.html(
'<a href= "http://orcid.org/' + d.orcid +
'" target="_blank">' + // The first <a> tag
d.orcid +
"</a>" + // closing </a> tag
"<br/>" + d.name)
.style("left", "50px")
.style("top", "50px");
}
function mouseover() {
d3.select(this).attr("r", 10);
};
function mouseout() {
d3.select(this).attr("r", 5);
};
});
</script>
@SimonGoring
Copy link
Author

Hey @BillMills I got it to work :)
http://bl.ocks.org/SimonGoring/6d499c40e8f222d2146d

A lot of it was problems with the JSON that I didn't anticipate. Partly I forgot that indexing in R is different than in js. That 0/1 thing really messed me up for a while!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment