User:Disgustedorite/Biodiversity

From Sagan 4 Alpha Wiki
Jump to navigation Jump to search

A quick look at the size of ecosystem pages...

  • Week 1: 510 bytes
  • Week 2: 881 bytes
  • Week 3: 1,150 bytes
  • Week 4: 2,003 bytes
  • Week 5: 3,754 bytes
  • Week 6: 4,944 bytes
  • Week 7: 8,673 bytes
  • Week 8: 11,862 bytes
  • Week 9: 13,239 bytes
  • Week 10: 19,848 bytes
  • Week 11: 26,039 bytes
  • Week 12: 27,848 bytes
  • Week 13: 29,216 bytes
  • Week 14: 33,033 bytes
  • Week 15: 24,885 bytes
  • Week 16: 34,250 bytes
  • Week 17: 44,228 bytes
  • Week 18: 95,408 bytes
  • Week 19: 98,260 bytes
  • Week 20: 96,559 bytes
  • Week 21: 79,072 bytes
  • Week 22: 38,887 bytes
  • Week 23: 72,266 bytes
  • Week 24: 75,126 bytes
  • Week 25: 92,931 bytes
  • Week 26: 102,938 bytes

When put onto a graph, the results should roughly show the biodiversity of Sagan 4 as it changed over time:

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["orchid"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"Week","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Ecosystem Length","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":0},{"y":510,"series":"y1","x":1},{"y":881,"series":"y1","x":2},{"y":1150,"series":"y1","x":3},{"y":2003,"series":"y1","x":4},{"y":3754,"series":"y1","x":5},{"y":4944,"series":"y1","x":6},{"y":8673,"series":"y1","x":7},{"y":11862,"series":"y1","x":8},{"y":13239,"series":"y1","x":9},{"y":19848,"series":"y1","x":10},{"y":26039,"series":"y1","x":11},{"y":27848,"series":"y1","x":12},{"y":29216,"series":"y1","x":13},{"y":33033,"series":"y1","x":14},{"y":24885,"series":"y1","x":15},{"y":34250,"series":"y1","x":16},{"y":44228,"series":"y1","x":17},{"y":95408,"series":"y1","x":18},{"y":98260,"series":"y1","x":19},{"y":96559,"series":"y1","x":20},{"y":79072,"series":"y1","x":21},{"y":38887,"series":"y1","x":22},{"y":72266,"series":"y1","x":23},{"y":75126,"series":"y1","x":24},{"y":92931,"series":"y1","x":25},{"y":102938,"series":"y1","x":26}]}],"width":1000}</graph>


Interestingly, only the gamma ray burst and the ice age / snowball event show up as major dips. Life bounced back from other mass extinctions too quickly for anything noticeable. I hope to make another chart someday that analyzes biodiversity generation-by-generation. Here, I show progress on the species count per week version:

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"stats","field":"sum_y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["navy","orange"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"layout_start"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","field":"layout_end"},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"type":"area"}],"from":{"data":"chart","transform":[{"field":"y","type":"stack","sortby":["-_id"],"groupby":["x"]},{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","title":"Week","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Extant Species","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":0},{"y":0,"series":"y1","x":1},{"y":0,"series":"y1","x":2},{"y":0,"series":"y1","x":3},{"y":0,"series":"y1","x":4},{"y":0,"series":"y1","x":5},{"y":0,"series":"y1","x":6},{"y":0,"series":"y1","x":7},{"y":0,"series":"y1","x":8},{"y":0,"series":"y1","x":9},{"y":0,"series":"y1","x":10},{"y":0,"series":"y1","x":11},{"y":0,"series":"y1","x":12},{"y":0,"series":"y1","x":13},{"y":0,"series":"y1","x":14},{"y":0,"series":"y1","x":15},{"y":0,"series":"y1","x":16},{"y":0,"series":"y1","x":17},{"y":0,"series":"y1","x":18},{"y":0,"series":"y1","x":19},{"y":0,"series":"y1","x":20},{"y":0,"series":"y1","x":21},{"y":71,"series":"y1","x":22},{"y":68,"series":"y1","x":23},{"y":41,"series":"y1","x":24},{"y":0,"series":"y1","x":25},{"y":0,"series":"y1","x":26},{"y":0,"series":"y2","x":0},{"y":50,"series":"y2","x":1},{"y":24,"series":"y2","x":2},{"y":38,"series":"y2","x":3},{"y":44,"series":"y2","x":4},{"y":82,"series":"y2","x":5},{"y":119,"series":"y2","x":6},{"y":167,"series":"y2","x":7},{"y":223,"series":"y2","x":8},{"y":266,"series":"y2","x":9},{"y":315,"series":"y2","x":10},{"y":378,"series":"y2","x":11},{"y":459,"series":"y2","x":12},{"y":536,"series":"y2","x":13},{"y":613,"series":"y2","x":14},{"y":355,"series":"y2","x":15},{"y":499,"series":"y2","x":16},{"y":704,"series":"y2","x":17},{"y":1124,"series":"y2","x":18},{"y":959,"series":"y2","x":19},{"y":1127,"series":"y2","x":20},{"y":1137,"series":"y2","x":21},{"y":691,"series":"y2","x":22},{"y":650,"series":"y2","x":23},{"y":771,"series":"y2","x":24},{"y":1057,"series":"y2","x":25},{"y":1176,"series":"y2","x":26}]},{"transform":[{"type":"aggregate","summarize":{"y":"sum"},"groupby":["x"]}],"name":"stats","source":"chart"}],"width":1000}</graph>

Extinction events should be a bit more visible this time, as this goes by sheer species count. Notably, it's clearly shown Sagan 4 did not fully recover from the gamma ray burst disaster in Week 15 until Week 17. As expected, there is another dip in Week 19 from the ice comet, though despite the major floral turnover it caused it was actually a proportionally less deadly event. Biodiversity recovered from the ice comet much faster than it had from the gamma ray burst, as is to be expected of a much less significant event. The snowball event in Week 22 is clearly visible once more, and I color coded Mason's life as blue. The dip continues slightly in Week 23, due in part to the second solar flare and the addition of the Genus System. Mason's biodiversity decreased until all life went extinct there, as interest in it fell with the reveal that all life on it would go extinct. Due to the sheer amount of stuff that died in the snowball event and rising sea levels killing more species each week that followed, it would not be until Week 26 that Sagan 4 would return to its prior biodiversity.

A more difficult chart would be extinctions per week. I am making one as part of a project to add every extinction date.

Number of species that died out each week: <graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["orchid"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"Week","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Extinctions","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":0},{"y":57,"series":"y1","x":1},{"y":39,"series":"y1","x":2},{"y":33,"series":"y1","x":3},{"y":21,"series":"y1","x":4},{"y":16,"series":"y1","x":5},{"y":4,"series":"y1","x":6},{"y":9,"series":"y1","x":7},{"y":8,"series":"y1","x":8},{"y":16,"series":"y1","x":9},{"y":19,"series":"y1","x":10},{"y":8,"series":"y1","x":11},{"y":10,"series":"y1","x":12},{"y":26,"series":"y1","x":13},{"y":50,"series":"y1","x":14},{"y":436,"series":"y1","x":15},{"y":77,"series":"y1","x":16},{"y":71,"series":"y1","x":17},{"y":142,"series":"y1","x":18},{"y":562,"series":"y1","x":19},{"y":229,"series":"y1","x":20},{"y":395,"series":"y1","x":21},{"y":772,"series":"y1","x":22},{"y":444,"series":"y1","x":23},{"y":306,"series":"y1","x":24},{"y":149,"series":"y1","x":25},{"y":59,"series":"y1","x":26}]}],"width":1000}</graph>

Next, I will do one that shows what percentage of species that were extant each week died the following week. This will take a bit more math because I have to exclude species that died the same week they were created.

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["orchid"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"Week","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Turnover","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":1},{"y":0,"series":"y1","x":2},{"y":52,"series":"y1","x":3},{"y":31,"series":"y1","x":4},{"y":28,"series":"y1","x":5},{"y":1,"series":"y1","x":6},{"y":6,"series":"y1","x":7},{"y":4,"series":"y1","x":8},{"y":3,"series":"y1","x":9},{"y":6,"series":"y1","x":10},{"y":2,"series":"y1","x":11},{"y":1,"series":"y1","x":12},{"y":4,"series":"y1","x":13},{"y":6,"series":"y1","x":14},{"y":66,"series":"y1","x":15},{"y":17,"series":"y1","x":16},{"y":10,"series":"y1","x":17},{"y":14,"series":"y1","x":18},{"y":47,"series":"y1","x":19},{"y":20,"series":"y1","x":20},{"y":34,"series":"y1","x":21},{"y":63,"series":"y1","x":22},{"y":44,"series":"y1","x":23},{"y":38,"series":"y1","x":24},{"y":17,"series":"y1","x":25},{"y":5,"series":"y1","x":26}]}],"width":1000}</graph>

The turnover percentage looks pretty similar to the one with total extinction numbers...except that it also reflects the era when everyone just replaced ancestors in straight lines. Those show up as extinction events. Nice.

Now, what about extinctions per generation? This goes up to generation 101 because I am not done compiling yet.

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["orchid"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"Generation","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Extinctions","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":0},{"y":0,"series":"y1","x":1},{"y":0,"series":"y1","x":2},{"y":0,"series":"y1","x":3},{"y":1,"series":"y1","x":4},{"y":0,"series":"y1","x":5},{"y":1,"series":"y1","x":6},{"y":0,"series":"y1","x":7},{"y":55,"series":"y1","x":8},{"y":4,"series":"y1","x":9},{"y":6,"series":"y1","x":10},{"y":7,"series":"y1","x":11},{"y":8,"series":"y1","x":12},{"y":6,"series":"y1","x":13},{"y":6,"series":"y1","x":14},{"y":9,"series":"y1","x":15},{"y":7,"series":"y1","x":16},{"y":2,"series":"y1","x":17},{"y":1,"series":"y1","x":18},{"y":6,"series":"y1","x":19},{"y":3,"series":"y1","x":20},{"y":4,"series":"y1","x":21},{"y":3,"series":"y1","x":22},{"y":4,"series":"y1","x":23},{"y":3,"series":"y1","x":24},{"y":3,"series":"y1","x":25},{"y":2,"series":"y1","x":26},{"y":2,"series":"y1","x":27},{"y":3,"series":"y1","x":28},{"y":0,"series":"y1","x":29},{"y":1,"series":"y1","x":30},{"y":3,"series":"y1","x":31},{"y":4,"series":"y1","x":32},{"y":4,"series":"y1","x":33},{"y":2,"series":"y1","x":34},{"y":0,"series":"y1","x":35},{"y":0,"series":"y1","x":36},{"y":2,"series":"y1","x":37},{"y":2,"series":"y1","x":38},{"y":0,"series":"y1","x":39},{"y":0,"series":"y1","x":40},{"y":0,"series":"y1","x":41},{"y":1,"series":"y1","x":42},{"y":1,"series":"y1","x":43},{"y":0,"series":"y1","x":44},{"y":1,"series":"y1","x":45},{"y":1,"series":"y1","x":46},{"y":2,"series":"y1","x":47},{"y":2,"series":"y1","x":48},{"y":1,"series":"y1","x":49},{"y":0,"series":"y1","x":50},{"y":0,"series":"y1","x":51},{"y":0,"series":"y1","x":52},{"y":0,"series":"y1","x":53},{"y":4,"series":"y1","x":54},{"y":3,"series":"y1","x":55},{"y":0,"series":"y1","x":56},{"y":5,"series":"y1","x":57},{"y":0,"series":"y1","x":58},{"y":1,"series":"y1","x":59},{"y":5,"series":"y1","x":60},{"y":2,"series":"y1","x":61},{"y":1,"series":"y1","x":62},{"y":0,"series":"y1","x":63},{"y":4,"series":"y1","x":64},{"y":4,"series":"y1","x":65},{"y":3,"series":"y1","x":66},{"y":0,"series":"y1","x":67},{"y":2,"series":"y1","x":68},{"y":3,"series":"y1","x":69},{"y":2,"series":"y1","x":70},{"y":0,"series":"y1","x":71},{"y":1,"series":"y1","x":72},{"y":1,"series":"y1","x":73},{"y":3,"series":"y1","x":74},{"y":0,"series":"y1","x":75},{"y":1,"series":"y1","x":76},{"y":1,"series":"y1","x":77},{"y":4,"series":"y1","x":78},{"y":0,"series":"y1","x":79},{"y":1,"series":"y1","x":80},{"y":4,"series":"y1","x":81},{"y":2,"series":"y1","x":82},{"y":5,"series":"y1","x":83},{"y":4,"series":"y1","x":84},{"y":4,"series":"y1","x":85},{"y":3,"series":"y1","x":86},{"y":2,"series":"y1","x":87},{"y":4,"series":"y1","x":88},{"y":2,"series":"y1","x":89},{"y":7,"series":"y1","x":90},{"y":4,"series":"y1","x":91},{"y":3,"series":"y1","x":92},{"y":6,"series":"y1","x":93},{"y":4,"series":"y1","x":94},{"y":23,"series":"y1","x":95},{"y":2,"series":"y1","x":96},{"y":2,"series":"y1","x":97},{"y":0,"series":"y1","x":98},{"y":3,"series":"y1","x":99},{"y":2,"series":"y1","x":100},{"y":427,"series":"y1","x":101}]}],"width":1000}</graph>

Beta Graphs

I just realized Beta has something that may be more useful for graphing information on when extinction events happened--the bot. Introducing, a graph of Beta's extinctions per generation!

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["red"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":200,"axes":[{"type":"x","title":"Generation","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Extinction Count","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":0},{"y":0,"series":"y1","x":1},{"y":0,"series":"y1","x":2},{"y":0,"series":"y1","x":3},{"y":0,"series":"y1","x":4},{"y":0,"series":"y1","x":5},{"y":1,"series":"y1","x":6},{"y":0,"series":"y1","x":7},{"y":0,"series":"y1","x":8},{"y":50,"series":"y1","x":9},{"y":2,"series":"y1","x":10},{"y":5,"series":"y1","x":11},{"y":3,"series":"y1","x":12},{"y":2,"series":"y1","x":13},{"y":3,"series":"y1","x":14},{"y":6,"series":"y1","x":15},{"y":18,"series":"y1","x":16},{"y":3,"series":"y1","x":17},{"y":2,"series":"y1","x":18},{"y":6,"series":"y1","x":19},{"y":5,"series":"y1","x":20},{"y":215,"series":"y1","x":21}]}],"width":1000}</graph>

The solar flare disaster and the cish plague are both visible. The cish plague. That was a lot bigger than I remembered. So far, Beta's first real extinction event has killed 215/844 species that were previously extant. That's about 25.5% of all life.