Skip to content

Commit

Permalink
Somewhat major refactoring to move functions into seperate script and…
Browse files Browse the repository at this point in the history
… bring in FDC intoo mechanism script
hg340 committed Feb 8, 2022
1 parent 7a5522b commit 40ad943
Showing 20 changed files with 1,354 additions and 796 deletions.
Binary file modified 6_Event_Stats/BACI_Plots/Fig1.QMax_BoxplotV3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
536 changes: 0 additions & 536 deletions 6_Event_Stats/EBud_Pophams_Comb_StatsViz_Mechanism.R

This file was deleted.

433 changes: 433 additions & 0 deletions 6_Event_Stats/Graham_etal_InReview_BudBrook_Mech.R

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
421 changes: 421 additions & 0 deletions 6_Event_Stats/Model_Compare_Tabs/Flow_Duration_Metrics.html

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions 6_Event_Stats/Model_Compare_Tabs/GoodnessOfFit.html
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="likgmekasl" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="yncngcwvzo" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#likgmekasl .gt_table {
#yncngcwvzo .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#likgmekasl .gt_heading {
#yncngcwvzo .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#likgmekasl .gt_title {
#yncngcwvzo .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#likgmekasl .gt_subtitle {
#yncngcwvzo .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#likgmekasl .gt_bottom_border {
#yncngcwvzo .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#likgmekasl .gt_col_headings {
#yncngcwvzo .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#likgmekasl .gt_col_heading {
#yncngcwvzo .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#likgmekasl .gt_column_spanner_outer {
#yncngcwvzo .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#likgmekasl .gt_column_spanner_outer:first-child {
#yncngcwvzo .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#likgmekasl .gt_column_spanner_outer:last-child {
#yncngcwvzo .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#likgmekasl .gt_column_spanner {
#yncngcwvzo .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#likgmekasl .gt_group_heading {
#yncngcwvzo .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#likgmekasl .gt_empty_group_heading {
#yncngcwvzo .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#likgmekasl .gt_from_md > :first-child {
#yncngcwvzo .gt_from_md > :first-child {
margin-top: 0;
}

#likgmekasl .gt_from_md > :last-child {
#yncngcwvzo .gt_from_md > :last-child {
margin-bottom: 0;
}

#likgmekasl .gt_row {
#yncngcwvzo .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#likgmekasl .gt_stub {
#yncngcwvzo .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#likgmekasl .gt_summary_row {
#yncngcwvzo .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#likgmekasl .gt_first_summary_row {
#yncngcwvzo .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#likgmekasl .gt_grand_summary_row {
#yncngcwvzo .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#likgmekasl .gt_first_grand_summary_row {
#yncngcwvzo .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#likgmekasl .gt_striped {
#yncngcwvzo .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#likgmekasl .gt_table_body {
#yncngcwvzo .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#likgmekasl .gt_footnotes {
#yncngcwvzo .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#likgmekasl .gt_footnote {
#yncngcwvzo .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#likgmekasl .gt_sourcenotes {
#yncngcwvzo .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#likgmekasl .gt_sourcenote {
#yncngcwvzo .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#likgmekasl .gt_left {
#yncngcwvzo .gt_left {
text-align: left;
}

#likgmekasl .gt_center {
#yncngcwvzo .gt_center {
text-align: center;
}

#likgmekasl .gt_right {
#yncngcwvzo .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#likgmekasl .gt_font_normal {
#yncngcwvzo .gt_font_normal {
font-weight: normal;
}

#likgmekasl .gt_font_bold {
#yncngcwvzo .gt_font_bold {
font-weight: bold;
}

#likgmekasl .gt_font_italic {
#yncngcwvzo .gt_font_italic {
font-style: italic;
}

#likgmekasl .gt_super {
#yncngcwvzo .gt_super {
font-size: 65%;
}

#likgmekasl .gt_footnote_marks {
#yncngcwvzo .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="ipqumuhugt" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="ugufybehlm" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#ipqumuhugt .gt_table {
#ugufybehlm .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#ipqumuhugt .gt_heading {
#ugufybehlm .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#ipqumuhugt .gt_title {
#ugufybehlm .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#ipqumuhugt .gt_subtitle {
#ugufybehlm .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#ipqumuhugt .gt_bottom_border {
#ugufybehlm .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#ipqumuhugt .gt_col_headings {
#ugufybehlm .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#ipqumuhugt .gt_col_heading {
#ugufybehlm .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#ipqumuhugt .gt_column_spanner_outer {
#ugufybehlm .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#ipqumuhugt .gt_column_spanner_outer:first-child {
#ugufybehlm .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#ipqumuhugt .gt_column_spanner_outer:last-child {
#ugufybehlm .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#ipqumuhugt .gt_column_spanner {
#ugufybehlm .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#ipqumuhugt .gt_group_heading {
#ugufybehlm .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#ipqumuhugt .gt_empty_group_heading {
#ugufybehlm .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#ipqumuhugt .gt_from_md > :first-child {
#ugufybehlm .gt_from_md > :first-child {
margin-top: 0;
}

#ipqumuhugt .gt_from_md > :last-child {
#ugufybehlm .gt_from_md > :last-child {
margin-bottom: 0;
}

#ipqumuhugt .gt_row {
#ugufybehlm .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#ipqumuhugt .gt_stub {
#ugufybehlm .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#ipqumuhugt .gt_summary_row {
#ugufybehlm .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#ipqumuhugt .gt_first_summary_row {
#ugufybehlm .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#ipqumuhugt .gt_grand_summary_row {
#ugufybehlm .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#ipqumuhugt .gt_first_grand_summary_row {
#ugufybehlm .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#ipqumuhugt .gt_striped {
#ugufybehlm .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#ipqumuhugt .gt_table_body {
#ugufybehlm .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#ipqumuhugt .gt_footnotes {
#ugufybehlm .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#ipqumuhugt .gt_footnote {
#ugufybehlm .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#ipqumuhugt .gt_sourcenotes {
#ugufybehlm .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#ipqumuhugt .gt_sourcenote {
#ugufybehlm .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#ipqumuhugt .gt_left {
#ugufybehlm .gt_left {
text-align: left;
}

#ipqumuhugt .gt_center {
#ugufybehlm .gt_center {
text-align: center;
}

#ipqumuhugt .gt_right {
#ugufybehlm .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#ipqumuhugt .gt_font_normal {
#ugufybehlm .gt_font_normal {
font-weight: normal;
}

#ipqumuhugt .gt_font_bold {
#ugufybehlm .gt_font_bold {
font-weight: bold;
}

#ipqumuhugt .gt_font_italic {
#ugufybehlm .gt_font_italic {
font-style: italic;
}

#ipqumuhugt .gt_super {
#ugufybehlm .gt_super {
font-size: 65%;
}

#ipqumuhugt .gt_footnote_marks {
#ugufybehlm .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="rqabqbmxqc" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="rayyfuoioz" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#rqabqbmxqc .gt_table {
#rayyfuoioz .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#rqabqbmxqc .gt_heading {
#rayyfuoioz .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#rqabqbmxqc .gt_title {
#rayyfuoioz .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#rqabqbmxqc .gt_subtitle {
#rayyfuoioz .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#rqabqbmxqc .gt_bottom_border {
#rayyfuoioz .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#rqabqbmxqc .gt_col_headings {
#rayyfuoioz .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#rqabqbmxqc .gt_col_heading {
#rayyfuoioz .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#rqabqbmxqc .gt_column_spanner_outer {
#rayyfuoioz .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#rqabqbmxqc .gt_column_spanner_outer:first-child {
#rayyfuoioz .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#rqabqbmxqc .gt_column_spanner_outer:last-child {
#rayyfuoioz .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#rqabqbmxqc .gt_column_spanner {
#rayyfuoioz .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#rqabqbmxqc .gt_group_heading {
#rayyfuoioz .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#rqabqbmxqc .gt_empty_group_heading {
#rayyfuoioz .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#rqabqbmxqc .gt_from_md > :first-child {
#rayyfuoioz .gt_from_md > :first-child {
margin-top: 0;
}

#rqabqbmxqc .gt_from_md > :last-child {
#rayyfuoioz .gt_from_md > :last-child {
margin-bottom: 0;
}

#rqabqbmxqc .gt_row {
#rayyfuoioz .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#rqabqbmxqc .gt_stub {
#rayyfuoioz .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#rqabqbmxqc .gt_summary_row {
#rayyfuoioz .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#rqabqbmxqc .gt_first_summary_row {
#rayyfuoioz .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#rqabqbmxqc .gt_grand_summary_row {
#rayyfuoioz .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#rqabqbmxqc .gt_first_grand_summary_row {
#rayyfuoioz .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#rqabqbmxqc .gt_striped {
#rayyfuoioz .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#rqabqbmxqc .gt_table_body {
#rayyfuoioz .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#rqabqbmxqc .gt_footnotes {
#rayyfuoioz .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#rqabqbmxqc .gt_footnote {
#rayyfuoioz .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#rqabqbmxqc .gt_sourcenotes {
#rayyfuoioz .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#rqabqbmxqc .gt_sourcenote {
#rayyfuoioz .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#rqabqbmxqc .gt_left {
#rayyfuoioz .gt_left {
text-align: left;
}

#rqabqbmxqc .gt_center {
#rayyfuoioz .gt_center {
text-align: center;
}

#rqabqbmxqc .gt_right {
#rayyfuoioz .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#rqabqbmxqc .gt_font_normal {
#rayyfuoioz .gt_font_normal {
font-weight: normal;
}

#rqabqbmxqc .gt_font_bold {
#rayyfuoioz .gt_font_bold {
font-weight: bold;
}

#rqabqbmxqc .gt_font_italic {
#rayyfuoioz .gt_font_italic {
font-style: italic;
}

#rqabqbmxqc .gt_super {
#rayyfuoioz .gt_super {
font-size: 65%;
}

#rqabqbmxqc .gt_footnote_marks {
#rayyfuoioz .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="rbelymjfjj" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="ptfkhvvgpq" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#rbelymjfjj .gt_table {
#ptfkhvvgpq .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#rbelymjfjj .gt_heading {
#ptfkhvvgpq .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#rbelymjfjj .gt_title {
#ptfkhvvgpq .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#rbelymjfjj .gt_subtitle {
#ptfkhvvgpq .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#rbelymjfjj .gt_bottom_border {
#ptfkhvvgpq .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#rbelymjfjj .gt_col_headings {
#ptfkhvvgpq .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#rbelymjfjj .gt_col_heading {
#ptfkhvvgpq .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#rbelymjfjj .gt_column_spanner_outer {
#ptfkhvvgpq .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#rbelymjfjj .gt_column_spanner_outer:first-child {
#ptfkhvvgpq .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#rbelymjfjj .gt_column_spanner_outer:last-child {
#ptfkhvvgpq .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#rbelymjfjj .gt_column_spanner {
#ptfkhvvgpq .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#rbelymjfjj .gt_group_heading {
#ptfkhvvgpq .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#rbelymjfjj .gt_empty_group_heading {
#ptfkhvvgpq .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#rbelymjfjj .gt_from_md > :first-child {
#ptfkhvvgpq .gt_from_md > :first-child {
margin-top: 0;
}

#rbelymjfjj .gt_from_md > :last-child {
#ptfkhvvgpq .gt_from_md > :last-child {
margin-bottom: 0;
}

#rbelymjfjj .gt_row {
#ptfkhvvgpq .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#rbelymjfjj .gt_stub {
#ptfkhvvgpq .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#rbelymjfjj .gt_summary_row {
#ptfkhvvgpq .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#rbelymjfjj .gt_first_summary_row {
#ptfkhvvgpq .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#rbelymjfjj .gt_grand_summary_row {
#ptfkhvvgpq .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#rbelymjfjj .gt_first_grand_summary_row {
#ptfkhvvgpq .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#rbelymjfjj .gt_striped {
#ptfkhvvgpq .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#rbelymjfjj .gt_table_body {
#ptfkhvvgpq .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#rbelymjfjj .gt_footnotes {
#ptfkhvvgpq .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#rbelymjfjj .gt_footnote {
#ptfkhvvgpq .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#rbelymjfjj .gt_sourcenotes {
#ptfkhvvgpq .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#rbelymjfjj .gt_sourcenote {
#ptfkhvvgpq .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#rbelymjfjj .gt_left {
#ptfkhvvgpq .gt_left {
text-align: left;
}

#rbelymjfjj .gt_center {
#ptfkhvvgpq .gt_center {
text-align: center;
}

#rbelymjfjj .gt_right {
#ptfkhvvgpq .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#rbelymjfjj .gt_font_normal {
#ptfkhvvgpq .gt_font_normal {
font-weight: normal;
}

#rbelymjfjj .gt_font_bold {
#ptfkhvvgpq .gt_font_bold {
font-weight: bold;
}

#rbelymjfjj .gt_font_italic {
#ptfkhvvgpq .gt_font_italic {
font-style: italic;
}

#rbelymjfjj .gt_super {
#ptfkhvvgpq .gt_super {
font-size: 65%;
}

#rbelymjfjj .gt_footnote_marks {
#ptfkhvvgpq .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="fppcdcwcpb" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="vrqbdmevsy" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#fppcdcwcpb .gt_table {
#vrqbdmevsy .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#fppcdcwcpb .gt_heading {
#vrqbdmevsy .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#fppcdcwcpb .gt_title {
#vrqbdmevsy .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#fppcdcwcpb .gt_subtitle {
#vrqbdmevsy .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#fppcdcwcpb .gt_bottom_border {
#vrqbdmevsy .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#fppcdcwcpb .gt_col_headings {
#vrqbdmevsy .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#fppcdcwcpb .gt_col_heading {
#vrqbdmevsy .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#fppcdcwcpb .gt_column_spanner_outer {
#vrqbdmevsy .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#fppcdcwcpb .gt_column_spanner_outer:first-child {
#vrqbdmevsy .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#fppcdcwcpb .gt_column_spanner_outer:last-child {
#vrqbdmevsy .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#fppcdcwcpb .gt_column_spanner {
#vrqbdmevsy .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#fppcdcwcpb .gt_group_heading {
#vrqbdmevsy .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#fppcdcwcpb .gt_empty_group_heading {
#vrqbdmevsy .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#fppcdcwcpb .gt_from_md > :first-child {
#vrqbdmevsy .gt_from_md > :first-child {
margin-top: 0;
}

#fppcdcwcpb .gt_from_md > :last-child {
#vrqbdmevsy .gt_from_md > :last-child {
margin-bottom: 0;
}

#fppcdcwcpb .gt_row {
#vrqbdmevsy .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#fppcdcwcpb .gt_stub {
#vrqbdmevsy .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#fppcdcwcpb .gt_summary_row {
#vrqbdmevsy .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#fppcdcwcpb .gt_first_summary_row {
#vrqbdmevsy .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#fppcdcwcpb .gt_grand_summary_row {
#vrqbdmevsy .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#fppcdcwcpb .gt_first_grand_summary_row {
#vrqbdmevsy .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#fppcdcwcpb .gt_striped {
#vrqbdmevsy .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#fppcdcwcpb .gt_table_body {
#vrqbdmevsy .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#fppcdcwcpb .gt_footnotes {
#vrqbdmevsy .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#fppcdcwcpb .gt_footnote {
#vrqbdmevsy .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#fppcdcwcpb .gt_sourcenotes {
#vrqbdmevsy .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#fppcdcwcpb .gt_sourcenote {
#vrqbdmevsy .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#fppcdcwcpb .gt_left {
#vrqbdmevsy .gt_left {
text-align: left;
}

#fppcdcwcpb .gt_center {
#vrqbdmevsy .gt_center {
text-align: center;
}

#fppcdcwcpb .gt_right {
#vrqbdmevsy .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#fppcdcwcpb .gt_font_normal {
#vrqbdmevsy .gt_font_normal {
font-weight: normal;
}

#fppcdcwcpb .gt_font_bold {
#vrqbdmevsy .gt_font_bold {
font-weight: bold;
}

#fppcdcwcpb .gt_font_italic {
#vrqbdmevsy .gt_font_italic {
font-style: italic;
}

#fppcdcwcpb .gt_super {
#vrqbdmevsy .gt_super {
font-size: 65%;
}

#fppcdcwcpb .gt_footnote_marks {
#vrqbdmevsy .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="owcigidbvz" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="tvynywchpl" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#owcigidbvz .gt_table {
#tvynywchpl .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#owcigidbvz .gt_heading {
#tvynywchpl .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#owcigidbvz .gt_title {
#tvynywchpl .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#owcigidbvz .gt_subtitle {
#tvynywchpl .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#owcigidbvz .gt_bottom_border {
#tvynywchpl .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#owcigidbvz .gt_col_headings {
#tvynywchpl .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#owcigidbvz .gt_col_heading {
#tvynywchpl .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#owcigidbvz .gt_column_spanner_outer {
#tvynywchpl .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#owcigidbvz .gt_column_spanner_outer:first-child {
#tvynywchpl .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#owcigidbvz .gt_column_spanner_outer:last-child {
#tvynywchpl .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#owcigidbvz .gt_column_spanner {
#tvynywchpl .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#owcigidbvz .gt_group_heading {
#tvynywchpl .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#owcigidbvz .gt_empty_group_heading {
#tvynywchpl .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#owcigidbvz .gt_from_md > :first-child {
#tvynywchpl .gt_from_md > :first-child {
margin-top: 0;
}

#owcigidbvz .gt_from_md > :last-child {
#tvynywchpl .gt_from_md > :last-child {
margin-bottom: 0;
}

#owcigidbvz .gt_row {
#tvynywchpl .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#owcigidbvz .gt_stub {
#tvynywchpl .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#owcigidbvz .gt_summary_row {
#tvynywchpl .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#owcigidbvz .gt_first_summary_row {
#tvynywchpl .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#owcigidbvz .gt_grand_summary_row {
#tvynywchpl .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#owcigidbvz .gt_first_grand_summary_row {
#tvynywchpl .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#owcigidbvz .gt_striped {
#tvynywchpl .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#owcigidbvz .gt_table_body {
#tvynywchpl .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#owcigidbvz .gt_footnotes {
#tvynywchpl .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#owcigidbvz .gt_footnote {
#tvynywchpl .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#owcigidbvz .gt_sourcenotes {
#tvynywchpl .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#owcigidbvz .gt_sourcenote {
#tvynywchpl .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#owcigidbvz .gt_left {
#tvynywchpl .gt_left {
text-align: left;
}

#owcigidbvz .gt_center {
#tvynywchpl .gt_center {
text-align: center;
}

#owcigidbvz .gt_right {
#tvynywchpl .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#owcigidbvz .gt_font_normal {
#tvynywchpl .gt_font_normal {
font-weight: normal;
}

#owcigidbvz .gt_font_bold {
#tvynywchpl .gt_font_bold {
font-weight: bold;
}

#owcigidbvz .gt_font_italic {
#tvynywchpl .gt_font_italic {
font-style: italic;
}

#owcigidbvz .gt_super {
#tvynywchpl .gt_super {
font-size: 65%;
}

#owcigidbvz .gt_footnote_marks {
#tvynywchpl .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
72 changes: 36 additions & 36 deletions 6_Event_Stats/Model_Compare_Tabs/SeasPolyInt(log-link).html
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

</head>
<body>
<div id="sjwkqlbsmm" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="jefpxuwkdl" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
}

#sjwkqlbsmm .gt_table {
#jefpxuwkdl .gt_table {
display: table;
border-collapse: collapse;
margin-left: auto;
@@ -37,7 +37,7 @@
border-left-color: #D3D3D3;
}

#sjwkqlbsmm .gt_heading {
#jefpxuwkdl .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@@ -49,7 +49,7 @@
border-right-color: #D3D3D3;
}

#sjwkqlbsmm .gt_title {
#jefpxuwkdl .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@@ -59,7 +59,7 @@
border-bottom-width: 0;
}

#sjwkqlbsmm .gt_subtitle {
#jefpxuwkdl .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@@ -69,13 +69,13 @@
border-top-width: 0;
}

#sjwkqlbsmm .gt_bottom_border {
#jefpxuwkdl .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}

#sjwkqlbsmm .gt_col_headings {
#jefpxuwkdl .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -90,7 +90,7 @@
border-right-color: #D3D3D3;
}

#sjwkqlbsmm .gt_col_heading {
#jefpxuwkdl .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -110,7 +110,7 @@
overflow-x: hidden;
}

#sjwkqlbsmm .gt_column_spanner_outer {
#jefpxuwkdl .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -122,15 +122,15 @@
padding-right: 4px;
}

#sjwkqlbsmm .gt_column_spanner_outer:first-child {
#jefpxuwkdl .gt_column_spanner_outer:first-child {
padding-left: 0;
}

#sjwkqlbsmm .gt_column_spanner_outer:last-child {
#jefpxuwkdl .gt_column_spanner_outer:last-child {
padding-right: 0;
}

#sjwkqlbsmm .gt_column_spanner {
#jefpxuwkdl .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@@ -142,7 +142,7 @@
width: 100%;
}

#sjwkqlbsmm .gt_group_heading {
#jefpxuwkdl .gt_group_heading {
padding: 8px;
color: #333333;
background-color: #FFFFFF;
@@ -164,7 +164,7 @@
vertical-align: middle;
}

#sjwkqlbsmm .gt_empty_group_heading {
#jefpxuwkdl .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@@ -179,15 +179,15 @@
vertical-align: middle;
}

#sjwkqlbsmm .gt_from_md > :first-child {
#jefpxuwkdl .gt_from_md > :first-child {
margin-top: 0;
}

#sjwkqlbsmm .gt_from_md > :last-child {
#jefpxuwkdl .gt_from_md > :last-child {
margin-bottom: 0;
}

#sjwkqlbsmm .gt_row {
#jefpxuwkdl .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -206,7 +206,7 @@
overflow-x: hidden;
}

#sjwkqlbsmm .gt_stub {
#jefpxuwkdl .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@@ -218,7 +218,7 @@
padding-left: 12px;
}

#sjwkqlbsmm .gt_summary_row {
#jefpxuwkdl .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -228,7 +228,7 @@
padding-right: 5px;
}

#sjwkqlbsmm .gt_first_summary_row {
#jefpxuwkdl .gt_first_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -238,7 +238,7 @@
border-top-color: #D3D3D3;
}

#sjwkqlbsmm .gt_grand_summary_row {
#jefpxuwkdl .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@@ -248,7 +248,7 @@
padding-right: 5px;
}

#sjwkqlbsmm .gt_first_grand_summary_row {
#jefpxuwkdl .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@@ -258,11 +258,11 @@
border-top-color: #D3D3D3;
}

#sjwkqlbsmm .gt_striped {
#jefpxuwkdl .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}

#sjwkqlbsmm .gt_table_body {
#jefpxuwkdl .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@@ -271,7 +271,7 @@
border-bottom-color: #D3D3D3;
}

#sjwkqlbsmm .gt_footnotes {
#jefpxuwkdl .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -285,13 +285,13 @@
border-right-color: #D3D3D3;
}

#sjwkqlbsmm .gt_footnote {
#jefpxuwkdl .gt_footnote {
margin: 0px;
font-size: 90%;
padding: 4px;
}

#sjwkqlbsmm .gt_sourcenotes {
#jefpxuwkdl .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@@ -305,41 +305,41 @@
border-right-color: #D3D3D3;
}

#sjwkqlbsmm .gt_sourcenote {
#jefpxuwkdl .gt_sourcenote {
font-size: 90%;
padding: 4px;
}

#sjwkqlbsmm .gt_left {
#jefpxuwkdl .gt_left {
text-align: left;
}

#sjwkqlbsmm .gt_center {
#jefpxuwkdl .gt_center {
text-align: center;
}

#sjwkqlbsmm .gt_right {
#jefpxuwkdl .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}

#sjwkqlbsmm .gt_font_normal {
#jefpxuwkdl .gt_font_normal {
font-weight: normal;
}

#sjwkqlbsmm .gt_font_bold {
#jefpxuwkdl .gt_font_bold {
font-weight: bold;
}

#sjwkqlbsmm .gt_font_italic {
#jefpxuwkdl .gt_font_italic {
font-style: italic;
}

#sjwkqlbsmm .gt_super {
#jefpxuwkdl .gt_super {
font-size: 65%;
}

#sjwkqlbsmm .gt_footnote_marks {
#jefpxuwkdl .gt_footnote_marks {
font-style: italic;
font-weight: normal;
font-size: 65%;
File renamed without changes.
File renamed without changes.
File renamed without changes.
247 changes: 247 additions & 0 deletions 6_Event_Stats/mechanisms_paper_functions.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@

#' Create Data frame for use with model predictions.
#'
Create_Data <- function(.data, vari, NoBeav.min, NoBeav.max, YesBeav.min,
YesBeav.max, l =100){
if(missing(NoBeav.min)) {
NoBeav.min <- .data %>% filter(Beaver == 'Absent') %>% select(!!vari) %>%
mutate_all(~(ifelse(is.na(.), 0, .))) %>% min()}
if(missing(NoBeav.max)) {
NoBeav.max <- .data %>% filter(Beaver == 'Absent') %>% select(!!vari) %>%

mutate_all(~(ifelse(is.na(.), 0, .))) %>% max()}
if(missing(YesBeav.min)) {
YesBeav.min <- .data %>% filter(Beaver == 'Present') %>% select(!!vari) %>%
mutate_all(~(ifelse(is.na(.), 0, .))) %>% min()}
if(missing(YesBeav.max)) {
YesBeav.max <- .data %>% filter(Beaver == 'Present') %>% select(!!vari) %>%
mutate_all(~(ifelse(is.na(.), 0, .))) %>% max()}

new_NoBeavWet.BB <- tibble(newvar=seq(NoBeav.min, NoBeav.max, length=l),
Beaver='Absent', Hydro.Seas = 'Wet',
Site = 'Budleigh Brook (impact)')
new_NoBeavDry.BB <- tibble(newvar=seq(NoBeav.min, NoBeav.max, length=l),
Beaver='Absent', Hydro.Seas = 'Dry',
Site = 'Budleigh Brook (impact)')
new_NoBeavWet.CB <- tibble(newvar=seq(NoBeav.min, NoBeav.max, length=l),
Beaver='Absent', Hydro.Seas = 'Wet',
Site = 'Colaton Brook (control)')
new_NoBeavDry.CB <- tibble(newvar=seq(NoBeav.min, NoBeav.max, length=l),
Beaver='Absent', Hydro.Seas = 'Dry',
Site = 'Colaton Brook (control)')
new_YesBeavWet.BB <- tibble(newvar=seq(YesBeav.min, YesBeav.max, length=l),
Beaver = 'Present', Hydro.Seas = 'Wet',
Site = 'Budleigh Brook (impact)')
new_YesBeavDry.BB <- tibble(newvar=seq(YesBeav.min, YesBeav.max, length=l),
Beaver = 'Present', Hydro.Seas = 'Dry',
Site = 'Budleigh Brook (impact)')
new_YesBeavWet.CB <- tibble(newvar=seq(YesBeav.min, YesBeav.max, length=l),
Beaver = 'Present', Hydro.Seas = 'Wet',
Site = 'Colaton Brook (control)')
new_YesBeavDry.CB <- tibble(newvar=seq(YesBeav.min, YesBeav.max, length=l),
Beaver = 'Present', Hydro.Seas = 'Dry',
Site = 'Colaton Brook (control)')

df <- bind_rows(new_NoBeavWet.BB, new_NoBeavDry.BB, new_NoBeavWet.CB,
new_NoBeavDry.CB, new_YesBeavWet.BB, new_YesBeavDry.BB,
new_YesBeavWet.CB, new_YesBeavDry.CB) %>%
mutate(!!vari := newvar) %>%
select(-newvar)

return(df)

}

#' Create Model Predictions dataframe
#'
#' Wraps the above function to return a tidy data frame with model predictions
#'
makes_preds <- function(.model, .name, df, ...) {
Create_Data(.data=df, var='rain.tot.mm', ...) %>%
broom::augment(.model, type.predict = "response",
type.residuals = "deviance",
se_fit = T, newdata=.) %>%
mutate(mod.name = .name)
}

#' Plot the result of a GLM
#'
#' return a customised plot of a moel output.
#'
glm.plot <- function(.data, model.data, .y, line=TRUE) {

.y <- enquo(.y)

p <- ggplot(model.data, aes(x=rain.tot.mm, y=!!.y, colour=Beaver, fill=Beaver))+
geom_point(data=.data, alpha = 0.4, size=0.9, stroke=0)

if (isTRUE(lines)) {
p <- p + geom_line(aes(x=rain.tot.mm, y = .fitted))
}
p +
geom_ribbon(aes(y=.fitted, ymin = .fitted - (1.96 *.se.fit),
ymax = .fitted + (1.96 *.se.fit)),
alpha=0.4, linetype=2, lwd=0.2) +
scale_color_manual(values = c("#dd5129", "#0f7ba2")) +
scale_fill_manual(values = c("#dd5129", "#0f7ba2")) +
labs(y= (expression("Event Maximum Flow " (m^{3}~s^{-1}))),
x=expression("Total Event Rainfall " (mm)),
colour = "Beaver Status at Impacted Site",
fill = "Beaver Status at Impacted Site") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5, size = 11),
strip.text.x = element_text(size = 12, color = "black", face = "italic"),
strip.text.y = element_text(size = 7, color = "black", face = "italic"),
strip.background = element_rect(color="black", fill="#F6F6F8", linetype=3),
legend.position = 'top')
}

val.plot.dir <- '6_Event_Stats/ModelValidation'
if (!dir.exists(val.plot.dir)) dir.create(val.plot.dir)

#' Clean up {performance} model diagnostics plots
#'
#' Edits the title and a few otherbits of model diagnostics plots
#'
check_model_title <- function(.model, mod.num, .title, .size=30){
pp <- check_model(.model)
p <- plot(pp)
p$patches$plots[[2]] <- p$patches$plots[[2]]+
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
p <- p + plot_annotation(title=.title)

fname <- file.path(val.plot.dir, paste0(sprintf('Model%s_',mod.num),.title, '.png'))
ggsave(fname, p, width = .size,
height = .size, units='cm')

}

#' Create a nice {gt} table
pretty.tab <- function(model.tab, title){
model.tab %>%
gt() %>%
tab_header(
title = md(sprintf('**<div style="text-align: left"> %s </div>**', title)))
}


#' Clean data from earlier processing steps ready for stats analysis.
#'
#' set the data range for beaver occupancy convert some values to hours etc.
#'
CleanData <- function(.data){
.data %>%
mutate(Beaver = as.factor(ifelse(event.start.ts > as.POSIXct("2017-01-01 00:00", "%Y-%m-%d %H:%M", tz = "UTC"), "Yes",
ifelse(event.start.ts > as.POSIXct("2016-08-01 00:00", "%Y-%m-%d %H:%M", tz = "UTC") &
event.start.ts < as.POSIXct("2017-01-01 00:00", "%Y-%m-%d %H:%M", tz = "UTC"), "Unsure", "No"))))%>%
filter(Beaver != "Unsure" & flimb.dur@.Data > 0 & rlimb.dur@.Data > 0 & Q.peak.m3.s >0) %>% # removes period of uncertainty where beaver's presence unknown.
mutate(Beaver = fct_relevel(Beaver, "No", "Yes")) %>%
mutate(rain.rate = rain.tot.mm/(rain.dur@.Data/3600)) %>%
mutate(flow.rate = Q.response.tot.m3/quickflow.dur@.Data) %>%
mutate(init.rain.rate = (init.rain.tot.mm/init.rain.dur@.Data)*60*60) %>%
mutate(Month = (month(event.start.ts))) %>%
mutate(Year = as.factor(year(event.start.ts))) %>%
mutate(rlimb.dur.hrs = (rlimb.dur@.Data/60)/60)%>%
mutate(flimb.dur.hrs = (flimb.dur@.Data/60)/60)%>%
mutate(Season = (ifelse(Month >= 3 & Month < 6, "Spring",
(ifelse(Month >=6 & Month <9, "Summer",
(ifelse(Month >=9 & Month <12, "Autumn",
(ifelse(Month >=12 | Month <3, "Winter", ""))))))))) %>%
mutate(Hydro.Seas = ifelse(Month >= 10 | Month < 4, "Wet", "Dry")) %>%
mutate(Season = fct_relevel(Season, "Winter","Spring", "Summer", "Autumn"))%>%
mutate(Hydro.Seas = fct_relevel(Hydro.Seas, "Dry", "Wet")) %>%
select(-c(response.eventID,check.outlier1)) %>%
drop_na()
}

#' function compare the different models wrapper for `glm.plot()` basically...
model_compare_plot <- function(.df, .log){
p <- glm.plot(.df, merge_model_preds, .y=Q.peak.m3.s, line = FALSE) +
facet_grid(mod.name~Site)
if (isTRUE(.log)) {
p <- p + scale_y_continuous(breaks = c(0,4, 10, 20),
trans=scales::pseudo_log_trans(base = 10)) +
coord_trans(ylim=c(0, 20))
} else {
p <- p + coord_cartesian(ylim=c(0,6))
}
add_general_facet_labs(p, 'Model', 'Site')
}



#' get the difference between pre and post beaver flow
#'
pred_diff <- function(df){
pred.diff <- df %>%
select(Beaver, .fitted,rain.tot.mm, .se.fit, Site) %>%
group_by(Beaver) %>%
group_split() %>%
bind_cols() %>%
mutate(.diff = .fitted...2 - .fitted...7,
L.ci = (.fitted...2 + .se.fit...4*1.96)-(.fitted...7 - .se.fit...9*1.96),
U.ci = (.fitted...2 - .se.fit...4*1.96)-(.fitted...7 + .se.fit...9*1.96)) #%>%
pred.diff

}

#' Plot the Attenuation effect at each site.
Attenuation_plot <- function(.df, .var){

.var = enquo(.var)

ggplot(.df, aes(x=!!.var, y=.diff))+
# geom_line() +
geom_ribbon(aes(ymin=U.ci, ymax=L.ci, fill=.name), alpha=0.5, colour="#fab255", lwd=0.4) +
ggpattern::geom_ribbon_pattern(data=att_region,aes(ymin=0, ymax=U.ci,
pattern_colour=.name, pattern_fill=.name),
fill=NA, colour=NA, pattern_size=0.1,
pattern_alpha=0.8,
pattern ='crosshatch',pattern_density = 0.05,
pattern_spacing=0.02) +
geom_hline(aes(yintercept=0), linetype=2)+
theme_bw() +
scale_fill_manual(values = "#fab255", name= '') +
scale_pattern_fill_manual(values = c("#43b284"), name='') +
scale_pattern_colour_manual(values = c("#43b284"), name='') +
labs(y= (expression("Predicted Flow Attenuation " (m^{3}~s^{-1})))) +
facet_wrap(~Site...5) +
theme(plot.title = element_text(hjust = 0.5, size = 11),
strip.text.x = element_text(size = 12, color = "black", face = "italic"),
strip.background = element_rect(color="black", fill="#F6F6F8", linetype=3),
legend.position = 'bottom')
}

#' Function to create Raincloud plots
#'
#' visulises the raw data, IQR, median etc. with density distribution...
#'

flowbox <- function(.data, yax) {
.data %>%
mutate(Site = fct_relevel(Site, "Budleigh Brook (impact)", "Colaton Brook (control)")) %>%
ggplot(., aes(x = Beaver, y=Q.peak.m3.s, fill = Beaver))+
geom_point(shape = 21, alpha = 0.5,position = position_jitterdodge(jitter.width = 0.2),
stroke = 0.1, size=0.5) +
geom_boxplot(colour = "black", alpha = 0.3, outlier.shape = NA, width = 0.2,
lwd=0.2) +
ggdist::stat_halfeye(aes(fill=Beaver),adjust = .7, width = .6, .width = 0, justification = -.25,
point_colour = 'NA', slab_alpha=0.5, slab_colour='black',
slab_size=0.4) +
coord_cartesian(xlim = c(1, NA), clip = "off") +

scale_fill_manual(values = c("#dd5129", "#0f7ba2")) +
ylab(yax)+
xlab('Beaver Status at Impacted Site') +
theme_bw() +
facet_wrap(~Site, ncol=2)+
theme(legend.position="none",
axis.title.y = element_text(margin = margin(t = 0, r = 15, b = 0, l = 0)),
axis.title.x = element_text(margin = margin(t = 15, r = 0, b = 0, l = 0)),
panel.border = element_blank(),
plot.title = element_text(hjust = 0.5),
strip.text.x = element_text(size = 12, color = "black", face = "italic"),
strip.background = element_rect(color="black", fill="#F6F6F8", linetype=3))

}

9 changes: 1 addition & 8 deletions 6_Event_Stats/stats_functions.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
# function to create Tidy Regression SUmmary table
add.stat.tab <- function(.model, poly=F){ # function to create a table for additive model
m <- tidy(.model, type.predict = "response") %>%
tidy(.model, type.predict = "response") %>%
mutate_at(vars(estimate, std.error, statistic), round,3) %>%
mutate(p.value = ifelse(p.value < 0.001, '< 0.001 **',
ifelse(p.value < 0.05, paste(formatC(p.value,format = "f", 3), '*', sep = " "),
ifelse(p.value < 0.1, paste(formatC(p.value,format = "f", 3), '.', sep = " "),
formatC(p.value,format = "f", 3))))) %>%
rename(T.statistic = statistic)
# if (isFALSE(poly)){
# m <- m %>% mutate(term = c('Intercept', 'Total Rainfall', 'Beaver', 'Budleigh Brook', 'Beaver:Budleigh Brook'))
# } else {
# m <- m %>% mutate(term = c('Intercept', 'poly(rain.tot.mm, 2)1', 'poly(rain.tot.mm, 2)2', 'Beaver',
# 'Budleigh Brook', 'Beaver:Budleigh Brook'))
# }
m
}

0 comments on commit 40ad943

Please sign in to comment.