diff --git a/.gitignore b/.gitignore index b10571b..390dd82 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ data/TOPS/* +basemaps/* +figures/school_maps/* api_keys/* basemaps/* .Rproj.user diff --git a/figures/school_maps/Crash Maps/Adams County/_Adams County_year.pdf b/figures/school_maps/Crash Maps/Adams County/_Adams County_year.pdf deleted file mode 100644 index d8b2d7e..0000000 Binary files a/figures/school_maps/Crash Maps/Adams County/_Adams County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Ashland County/_Ashland County_year.pdf b/figures/school_maps/Crash Maps/Ashland County/_Ashland County_year.pdf deleted file mode 100644 index 0a1ddee..0000000 Binary files a/figures/school_maps/Crash Maps/Ashland County/_Ashland County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Barron County/_Barron County_year.pdf b/figures/school_maps/Crash Maps/Barron County/_Barron County_year.pdf deleted file mode 100644 index ff50416..0000000 Binary files a/figures/school_maps/Crash Maps/Barron County/_Barron County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Bayfield County/_Bayfield County_year.pdf b/figures/school_maps/Crash Maps/Bayfield County/_Bayfield County_year.pdf deleted file mode 100644 index ac00bdb..0000000 Binary files a/figures/school_maps/Crash Maps/Bayfield County/_Bayfield County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Brown County/_Brown County_year.pdf b/figures/school_maps/Crash Maps/Brown County/_Brown County_year.pdf deleted file mode 100644 index 2249316..0000000 Binary files a/figures/school_maps/Crash Maps/Brown County/_Brown County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Buffalo County/_Buffalo County_year.pdf b/figures/school_maps/Crash Maps/Buffalo County/_Buffalo County_year.pdf deleted file mode 100644 index 5a80611..0000000 Binary files a/figures/school_maps/Crash Maps/Buffalo County/_Buffalo County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Burnett County/_Burnett County_year.pdf b/figures/school_maps/Crash Maps/Burnett County/_Burnett County_year.pdf deleted file mode 100644 index 2ae96fb..0000000 Binary files a/figures/school_maps/Crash Maps/Burnett County/_Burnett County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Calumet County/_Calumet County_year.pdf b/figures/school_maps/Crash Maps/Calumet County/_Calumet County_year.pdf deleted file mode 100644 index fe390f0..0000000 Binary files a/figures/school_maps/Crash Maps/Calumet County/_Calumet County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Chippewa County/_Chippewa County_year.pdf b/figures/school_maps/Crash Maps/Chippewa County/_Chippewa County_year.pdf deleted file mode 100644 index 8dfbe20..0000000 Binary files a/figures/school_maps/Crash Maps/Chippewa County/_Chippewa County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Clark County/_Clark County_year.pdf b/figures/school_maps/Crash Maps/Clark County/_Clark County_year.pdf deleted file mode 100644 index 7c980d9..0000000 Binary files a/figures/school_maps/Crash Maps/Clark County/_Clark County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Columbia County/_Columbia County_year.pdf b/figures/school_maps/Crash Maps/Columbia County/_Columbia County_year.pdf deleted file mode 100644 index fc79914..0000000 Binary files a/figures/school_maps/Crash Maps/Columbia County/_Columbia County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Crawford County/_Crawford County_year.pdf b/figures/school_maps/Crash Maps/Crawford County/_Crawford County_year.pdf deleted file mode 100644 index 307805e..0000000 Binary files a/figures/school_maps/Crash Maps/Crawford County/_Crawford County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Capital High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Capital High School.pdf deleted file mode 100644 index ef076f9..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Capital High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/East High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/East High School.pdf deleted file mode 100644 index 6b801ce..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/East High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Innovative & Alternative High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Innovative & Alternative High School.pdf deleted file mode 100644 index 7f99d2b..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Innovative & Alternative High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/LaFollette High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/LaFollette High School.pdf deleted file mode 100644 index 0c7a653..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/LaFollette High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Memorial High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Memorial High School.pdf deleted file mode 100644 index 34fd44d..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Memorial High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Shabazz-City High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Shabazz-City High School.pdf deleted file mode 100644 index 61e9d97..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/Shabazz-City High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/West High School.pdf b/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/West High School.pdf deleted file mode 100644 index 1fac6f1..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/Madison Metropolitan School District/High Schools/West High School.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dane County/_Dane County_year.pdf b/figures/school_maps/Crash Maps/Dane County/_Dane County_year.pdf deleted file mode 100644 index dd32b03..0000000 Binary files a/figures/school_maps/Crash Maps/Dane County/_Dane County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dodge County/_Dodge County_year.pdf b/figures/school_maps/Crash Maps/Dodge County/_Dodge County_year.pdf deleted file mode 100644 index 859a6c5..0000000 Binary files a/figures/school_maps/Crash Maps/Dodge County/_Dodge County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Door County/_Door County_year.pdf b/figures/school_maps/Crash Maps/Door County/_Door County_year.pdf deleted file mode 100644 index 47e5516..0000000 Binary files a/figures/school_maps/Crash Maps/Door County/_Door County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Douglas County/_Douglas County_year.pdf b/figures/school_maps/Crash Maps/Douglas County/_Douglas County_year.pdf deleted file mode 100644 index be6c9b6..0000000 Binary files a/figures/school_maps/Crash Maps/Douglas County/_Douglas County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Dunn County/_Dunn County_year.pdf b/figures/school_maps/Crash Maps/Dunn County/_Dunn County_year.pdf deleted file mode 100644 index 8f13c6c..0000000 Binary files a/figures/school_maps/Crash Maps/Dunn County/_Dunn County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Eau Claire County/_Eau Claire County_year.pdf b/figures/school_maps/Crash Maps/Eau Claire County/_Eau Claire County_year.pdf deleted file mode 100644 index 22bc180..0000000 Binary files a/figures/school_maps/Crash Maps/Eau Claire County/_Eau Claire County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Florence County/_Florence County_year.pdf b/figures/school_maps/Crash Maps/Florence County/_Florence County_year.pdf deleted file mode 100644 index 362013f..0000000 Binary files a/figures/school_maps/Crash Maps/Florence County/_Florence County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Fond Du Lac County/_Fond Du Lac County_year.pdf b/figures/school_maps/Crash Maps/Fond Du Lac County/_Fond Du Lac County_year.pdf deleted file mode 100644 index 2a7ad24..0000000 Binary files a/figures/school_maps/Crash Maps/Fond Du Lac County/_Fond Du Lac County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Forest County/_Forest County_year.pdf b/figures/school_maps/Crash Maps/Forest County/_Forest County_year.pdf deleted file mode 100644 index 23bfc20..0000000 Binary files a/figures/school_maps/Crash Maps/Forest County/_Forest County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Grant County/_Grant County_year.pdf b/figures/school_maps/Crash Maps/Grant County/_Grant County_year.pdf deleted file mode 100644 index b1af5b7..0000000 Binary files a/figures/school_maps/Crash Maps/Grant County/_Grant County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Green County/_Green County_year.pdf b/figures/school_maps/Crash Maps/Green County/_Green County_year.pdf deleted file mode 100644 index 601f46e..0000000 Binary files a/figures/school_maps/Crash Maps/Green County/_Green County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Green Lake County/_Green Lake County_year.pdf b/figures/school_maps/Crash Maps/Green Lake County/_Green Lake County_year.pdf deleted file mode 100644 index 25064db..0000000 Binary files a/figures/school_maps/Crash Maps/Green Lake County/_Green Lake County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Iowa County/_Iowa County_year.pdf b/figures/school_maps/Crash Maps/Iowa County/_Iowa County_year.pdf deleted file mode 100644 index ce5983e..0000000 Binary files a/figures/school_maps/Crash Maps/Iowa County/_Iowa County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Iron County/_Iron County_year.pdf b/figures/school_maps/Crash Maps/Iron County/_Iron County_year.pdf deleted file mode 100644 index ee8638b..0000000 Binary files a/figures/school_maps/Crash Maps/Iron County/_Iron County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Jackson County/_Jackson County_year.pdf b/figures/school_maps/Crash Maps/Jackson County/_Jackson County_year.pdf deleted file mode 100644 index d57bab6..0000000 Binary files a/figures/school_maps/Crash Maps/Jackson County/_Jackson County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Jefferson County/_Jefferson County_year.pdf b/figures/school_maps/Crash Maps/Jefferson County/_Jefferson County_year.pdf deleted file mode 100644 index d6ec199..0000000 Binary files a/figures/school_maps/Crash Maps/Jefferson County/_Jefferson County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Juneau County/_Juneau County_year.pdf b/figures/school_maps/Crash Maps/Juneau County/_Juneau County_year.pdf deleted file mode 100644 index bad8cfa..0000000 Binary files a/figures/school_maps/Crash Maps/Juneau County/_Juneau County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Kenosha County/_Kenosha County_year.pdf b/figures/school_maps/Crash Maps/Kenosha County/_Kenosha County_year.pdf deleted file mode 100644 index 923a9a4..0000000 Binary files a/figures/school_maps/Crash Maps/Kenosha County/_Kenosha County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Kewaunee County/_Kewaunee County_year.pdf b/figures/school_maps/Crash Maps/Kewaunee County/_Kewaunee County_year.pdf deleted file mode 100644 index de6e9db..0000000 Binary files a/figures/school_maps/Crash Maps/Kewaunee County/_Kewaunee County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/La Crosse County/_La Crosse County_year.pdf b/figures/school_maps/Crash Maps/La Crosse County/_La Crosse County_year.pdf deleted file mode 100644 index dc7f4d1..0000000 Binary files a/figures/school_maps/Crash Maps/La Crosse County/_La Crosse County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Lafayette County/_Lafayette County_year.pdf b/figures/school_maps/Crash Maps/Lafayette County/_Lafayette County_year.pdf deleted file mode 100644 index d03d14d..0000000 Binary files a/figures/school_maps/Crash Maps/Lafayette County/_Lafayette County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Langlade County/_Langlade County_year.pdf b/figures/school_maps/Crash Maps/Langlade County/_Langlade County_year.pdf deleted file mode 100644 index 4859579..0000000 Binary files a/figures/school_maps/Crash Maps/Langlade County/_Langlade County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Lincoln County/_Lincoln County_year.pdf b/figures/school_maps/Crash Maps/Lincoln County/_Lincoln County_year.pdf deleted file mode 100644 index cb88478..0000000 Binary files a/figures/school_maps/Crash Maps/Lincoln County/_Lincoln County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Manitowoc County/_Manitowoc County_year.pdf b/figures/school_maps/Crash Maps/Manitowoc County/_Manitowoc County_year.pdf deleted file mode 100644 index 0e35588..0000000 Binary files a/figures/school_maps/Crash Maps/Manitowoc County/_Manitowoc County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Marathon County/_Marathon County_year.pdf b/figures/school_maps/Crash Maps/Marathon County/_Marathon County_year.pdf deleted file mode 100644 index 8e2090d..0000000 Binary files a/figures/school_maps/Crash Maps/Marathon County/_Marathon County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Marinette County/_Marinette County_year.pdf b/figures/school_maps/Crash Maps/Marinette County/_Marinette County_year.pdf deleted file mode 100644 index c21b1d4..0000000 Binary files a/figures/school_maps/Crash Maps/Marinette County/_Marinette County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Marquette County/_Marquette County_year.pdf b/figures/school_maps/Crash Maps/Marquette County/_Marquette County_year.pdf deleted file mode 100644 index fabe676..0000000 Binary files a/figures/school_maps/Crash Maps/Marquette County/_Marquette County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Menominee County/_Menominee County_year.pdf b/figures/school_maps/Crash Maps/Menominee County/_Menominee County_year.pdf deleted file mode 100644 index 8790f8e..0000000 Binary files a/figures/school_maps/Crash Maps/Menominee County/_Menominee County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Milwaukee County/_Milwaukee County_year.pdf b/figures/school_maps/Crash Maps/Milwaukee County/_Milwaukee County_year.pdf deleted file mode 100644 index ff01915..0000000 Binary files a/figures/school_maps/Crash Maps/Milwaukee County/_Milwaukee County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Monroe County/_Monroe County_year.pdf b/figures/school_maps/Crash Maps/Monroe County/_Monroe County_year.pdf deleted file mode 100644 index 8b03e88..0000000 Binary files a/figures/school_maps/Crash Maps/Monroe County/_Monroe County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Oconto County/_Oconto County_year.pdf b/figures/school_maps/Crash Maps/Oconto County/_Oconto County_year.pdf deleted file mode 100644 index ed24366..0000000 Binary files a/figures/school_maps/Crash Maps/Oconto County/_Oconto County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Oneida County/_Oneida County_year.pdf b/figures/school_maps/Crash Maps/Oneida County/_Oneida County_year.pdf deleted file mode 100644 index 9b95d18..0000000 Binary files a/figures/school_maps/Crash Maps/Oneida County/_Oneida County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Outagamie County/_Outagamie County_year.pdf b/figures/school_maps/Crash Maps/Outagamie County/_Outagamie County_year.pdf deleted file mode 100644 index dafd818..0000000 Binary files a/figures/school_maps/Crash Maps/Outagamie County/_Outagamie County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Ozaukee County/_Ozaukee County_year.pdf b/figures/school_maps/Crash Maps/Ozaukee County/_Ozaukee County_year.pdf deleted file mode 100644 index f25ea94..0000000 Binary files a/figures/school_maps/Crash Maps/Ozaukee County/_Ozaukee County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Pepin County/_Pepin County_year.pdf b/figures/school_maps/Crash Maps/Pepin County/_Pepin County_year.pdf deleted file mode 100644 index dc7f671..0000000 Binary files a/figures/school_maps/Crash Maps/Pepin County/_Pepin County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Pierce County/_Pierce County_year.pdf b/figures/school_maps/Crash Maps/Pierce County/_Pierce County_year.pdf deleted file mode 100644 index f18ca27..0000000 Binary files a/figures/school_maps/Crash Maps/Pierce County/_Pierce County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Polk County/_Polk County_year.pdf b/figures/school_maps/Crash Maps/Polk County/_Polk County_year.pdf deleted file mode 100644 index c3ebd79..0000000 Binary files a/figures/school_maps/Crash Maps/Polk County/_Polk County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Portage County/_Portage County_year.pdf b/figures/school_maps/Crash Maps/Portage County/_Portage County_year.pdf deleted file mode 100644 index 8079da0..0000000 Binary files a/figures/school_maps/Crash Maps/Portage County/_Portage County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Price County/_Price County_year.pdf b/figures/school_maps/Crash Maps/Price County/_Price County_year.pdf deleted file mode 100644 index b429b73..0000000 Binary files a/figures/school_maps/Crash Maps/Price County/_Price County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Racine County/_Racine County_year.pdf b/figures/school_maps/Crash Maps/Racine County/_Racine County_year.pdf deleted file mode 100644 index a92be14..0000000 Binary files a/figures/school_maps/Crash Maps/Racine County/_Racine County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Richland County/_Richland County_year.pdf b/figures/school_maps/Crash Maps/Richland County/_Richland County_year.pdf deleted file mode 100644 index 79380ea..0000000 Binary files a/figures/school_maps/Crash Maps/Richland County/_Richland County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Rock County/_Rock County_year.pdf b/figures/school_maps/Crash Maps/Rock County/_Rock County_year.pdf deleted file mode 100644 index 979373c..0000000 Binary files a/figures/school_maps/Crash Maps/Rock County/_Rock County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Rusk County/_Rusk County_year.pdf b/figures/school_maps/Crash Maps/Rusk County/_Rusk County_year.pdf deleted file mode 100644 index 1b54583..0000000 Binary files a/figures/school_maps/Crash Maps/Rusk County/_Rusk County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Saint Croix County/_Saint Croix County_year.pdf b/figures/school_maps/Crash Maps/Saint Croix County/_Saint Croix County_year.pdf deleted file mode 100644 index ebd8b7b..0000000 Binary files a/figures/school_maps/Crash Maps/Saint Croix County/_Saint Croix County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Sauk County/_Sauk County_year.pdf b/figures/school_maps/Crash Maps/Sauk County/_Sauk County_year.pdf deleted file mode 100644 index 994a62d..0000000 Binary files a/figures/school_maps/Crash Maps/Sauk County/_Sauk County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Sawyer County/_Sawyer County_year.pdf b/figures/school_maps/Crash Maps/Sawyer County/_Sawyer County_year.pdf deleted file mode 100644 index 80e1263..0000000 Binary files a/figures/school_maps/Crash Maps/Sawyer County/_Sawyer County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Shawano County/_Shawano County_year.pdf b/figures/school_maps/Crash Maps/Shawano County/_Shawano County_year.pdf deleted file mode 100644 index f51ea34..0000000 Binary files a/figures/school_maps/Crash Maps/Shawano County/_Shawano County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Sheboygan County/_Sheboygan County_year.pdf b/figures/school_maps/Crash Maps/Sheboygan County/_Sheboygan County_year.pdf deleted file mode 100644 index ce6d553..0000000 Binary files a/figures/school_maps/Crash Maps/Sheboygan County/_Sheboygan County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Taylor County/_Taylor County_year.pdf b/figures/school_maps/Crash Maps/Taylor County/_Taylor County_year.pdf deleted file mode 100644 index b77ac44..0000000 Binary files a/figures/school_maps/Crash Maps/Taylor County/_Taylor County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Trempealeau County/_Trempealeau County_year.pdf b/figures/school_maps/Crash Maps/Trempealeau County/_Trempealeau County_year.pdf deleted file mode 100644 index 7358710..0000000 Binary files a/figures/school_maps/Crash Maps/Trempealeau County/_Trempealeau County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Vernon County/_Vernon County_year.pdf b/figures/school_maps/Crash Maps/Vernon County/_Vernon County_year.pdf deleted file mode 100644 index 0c84e9e..0000000 Binary files a/figures/school_maps/Crash Maps/Vernon County/_Vernon County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Vilas County/_Vilas County_year.pdf b/figures/school_maps/Crash Maps/Vilas County/_Vilas County_year.pdf deleted file mode 100644 index 2910642..0000000 Binary files a/figures/school_maps/Crash Maps/Vilas County/_Vilas County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Walworth County/_Walworth County_year.pdf b/figures/school_maps/Crash Maps/Walworth County/_Walworth County_year.pdf deleted file mode 100644 index 0d3ed92..0000000 Binary files a/figures/school_maps/Crash Maps/Walworth County/_Walworth County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Washburn County/_Washburn County_year.pdf b/figures/school_maps/Crash Maps/Washburn County/_Washburn County_year.pdf deleted file mode 100644 index 7d0be7e..0000000 Binary files a/figures/school_maps/Crash Maps/Washburn County/_Washburn County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Washington County/_Washington County_year.pdf b/figures/school_maps/Crash Maps/Washington County/_Washington County_year.pdf deleted file mode 100644 index d69d05f..0000000 Binary files a/figures/school_maps/Crash Maps/Washington County/_Washington County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Waukesha County/_Waukesha County_year.pdf b/figures/school_maps/Crash Maps/Waukesha County/_Waukesha County_year.pdf deleted file mode 100644 index 37ea405..0000000 Binary files a/figures/school_maps/Crash Maps/Waukesha County/_Waukesha County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Waupaca County/_Waupaca County_year.pdf b/figures/school_maps/Crash Maps/Waupaca County/_Waupaca County_year.pdf deleted file mode 100644 index 3d085e9..0000000 Binary files a/figures/school_maps/Crash Maps/Waupaca County/_Waupaca County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Waushara County/_Waushara County_year.pdf b/figures/school_maps/Crash Maps/Waushara County/_Waushara County_year.pdf deleted file mode 100644 index c4d0160..0000000 Binary files a/figures/school_maps/Crash Maps/Waushara County/_Waushara County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Winnebago County/_Winnebago County_year.pdf b/figures/school_maps/Crash Maps/Winnebago County/_Winnebago County_year.pdf deleted file mode 100644 index 5a3f4e7..0000000 Binary files a/figures/school_maps/Crash Maps/Winnebago County/_Winnebago County_year.pdf and /dev/null differ diff --git a/figures/school_maps/Crash Maps/Wood County/_Wood County_year.pdf b/figures/school_maps/Crash Maps/Wood County/_Wood County_year.pdf deleted file mode 100644 index b4d3a7b..0000000 Binary files a/figures/school_maps/Crash Maps/Wood County/_Wood County_year.pdf and /dev/null differ diff --git a/scripts/dynamic_crash_map.R b/scripts/dynamic_crash_map.R index 65877f6..95a6f05 100644 --- a/scripts/dynamic_crash_map.R +++ b/scripts/dynamic_crash_map.R @@ -157,7 +157,7 @@ tag.map.subtitle <- tags$style(HTML(" subtitle <- tags$div( tag.map.subtitle, HTML("data from UW TOPS lab - retrieved 4/2024
per direction of the WisDOT Bureau of Transportation Safety") -) +) leaflet() %>% addControl(title, position = "topleft", className="map-title") %>% diff --git a/scripts/school_maps.R b/scripts/school_maps.R index fd90965..1d30b42 100644 --- a/scripts/school_maps.R +++ b/scripts/school_maps.R @@ -95,11 +95,11 @@ bike_lts_scale <- data.frame(code = c(1, 2, 3, 4, 9), # register stadia API key ---- register_stadiamaps(key = substr(read_file(file = "api_keys/stadia_api_key"), 1, 36)) -options(ggmap.file_drawer = "basemaps") +#options(ggmap.file_drawer = "basemaps") # dir.create(file_drawer(), recursive = TRUE, showWarnings = FALSE) # saveRDS(list(), file_drawer("index.rds")) -readRDS(file_drawer("index.rds")) -file_drawer("index.rds") +#readRDS(file_drawer("index.rds")) +#file_drawer("index.rds") # load census api key ---- #census_api_key(key = substr(read_file(file = "api_keys/census_api_key"), 1, 40)) @@ -111,16 +111,16 @@ school_symbol <- image_read_svg(path = "other/school_FILL0_wght400_GRAD0_opsz24. ## ---- generate charts/maps ---- ## set parameters of run -county_focus <- str_to_upper(unique(WI_schools %>% pull(CTY_DIST))) +#county_focus <- str_to_upper(unique(WI_schools %>% pull(CTY_DIST))) #county_focus <- c("DANE") -#county_focus <- c("MILWAUKEE") +county_focus <- c("MILWAUKEE") -school_type_focus <- unique(WI_schools %>% filter(CTY_DIST %in% str_to_title(county_focus)) %>% pull(SCHOOLTYPE)) -#school_type_focus <- c("High School") +#school_type_focus <- unique(WI_schools %>% filter(CTY_DIST %in% str_to_title(county_focus)) %>% pull(SCHOOLTYPE)) +school_type_focus <- c("High School") -district_focus <- unique(WI_schools %>% filter(CTY_DIST %in% str_to_title(county_focus), SCHOOLTYPE %in% school_type_focus, !is.na(DISTRICT_NAME)) %>% pull(DISTRICT_NAME)) +#district_focus <- unique(WI_schools %>% filter(CTY_DIST %in% str_to_title(county_focus), SCHOOLTYPE %in% school_type_focus, !is.na(DISTRICT_NAME)) %>% pull(DISTRICT_NAME)) #district_focus <- c("Madison Metropolitan") -#district_focus <- c("Milwaukee") +district_focus <- c("Milwaukee") school_number <- length(unique(WI_schools %>% filter(CTY_DIST %in% str_to_title(county_focus), SCHOOLTYPE %in% school_type_focus, @@ -238,6 +238,11 @@ i <- 0 for(district in district_focus) { message(paste("***", district, "School District |")) + options(ggmap.file_drawer = paste0("basemaps/districts/", district)) + dir.create(file_drawer(), recursive = TRUE, showWarnings = FALSE) + saveRDS(list(), file_drawer("index.rds")) + readRDS(file_drawer("index.rds")) + file_drawer("index.rds") for(school in WI_schools %>% filter(DISTRICT_NAME %in% district, SCHOOLTYPE %in% school_type_focus, @@ -275,7 +280,7 @@ for(district in district_focus) { top = as.double(bbox[4])) #get basemap - basemap <- get_stadiamap(bbox = bbox, zoom = 16, maptype = "stamen_toner_lite") + basemap <- get_stadiamap(bbox = bbox, zoom = 15, maptype = "stamen_toner_lite") # generate map ggmap(basemap) + @@ -287,11 +292,12 @@ for(district in district_focus) { min(year(TOPS_data$date), na.rm = TRUE), " - ", max(year(TOPS_data$date), na.rm = TRUE)), - caption = "data from Wisconsin DOT, UW TOPS Laboratory, Wisconsin DPI, and OpenStreetMap", + caption = "crash data from UW TOPS lab - retrieved 3/2024 per direction of the WisDOT Bureau of Transportation Safety\nbasemap from StadiaMaps and OpenStreetMap Contributers", x = NULL, y = NULL) + theme(axis.text=element_blank(), - axis.ticks=element_blank()) + + axis.ticks=element_blank(), + plot.caption = element_text(color = "grey")) + ## add bike lts #geom_sf(data = bike_lts[[county]], diff --git a/scripts/school_maps_parallel.R b/scripts/school_maps_parallel.R index ecb076b..161c71f 100644 --- a/scripts/school_maps_parallel.R +++ b/scripts/school_maps_parallel.R @@ -252,7 +252,7 @@ district_focus <- district_focus[! district_focus %in% districts_done$district] generate_school_maps <- function(district) { message(paste("***", district, "School District |", match(district, district_focus), "/271")) - options(ggmap.file_drawer = paste0("data/basemaps/districts/", district)) + options(ggmap.file_drawer = paste0("basemaps/districts/", district)) dir.create(file_drawer(), recursive = TRUE, showWarnings = FALSE) saveRDS(list(), file_drawer("index.rds")) readRDS(file_drawer("index.rds")) @@ -293,7 +293,7 @@ generate_school_maps <- function(district) { top = as.double(bbox[4])) #get basemap - basemap <- get_stadiamap(bbox = bbox, zoom = 16, maptype = "stamen_toner_lite") + basemap <- get_stadiamap(bbox = bbox, zoom = 15, maptype = "stamen_toner_lite") # generate map ggmap(basemap) + @@ -305,11 +305,12 @@ generate_school_maps <- function(district) { min(year(TOPS_data$date), na.rm = TRUE), " - ", max(year(TOPS_data$date), na.rm = TRUE)), - caption = "data from Wisconsin DOT, UW TOPS Laboratory, Wisconsin DPI, and OpenStreetMap", + caption = "crash data from UW TOPS lab - retrieved 3/2024 per direction of the WisDOT Bureau of Transportation Safety\nbasemap from StadiaMaps and OpenStreetMap Contributers", x = NULL, y = NULL) + theme(axis.text=element_blank(), - axis.ticks=element_blank()) + + axis.ticks=element_blank(), + plot.caption = element_text(color = "grey")) + ## add bike lts #geom_sf(data = bike_lts[[county]], @@ -389,7 +390,7 @@ generate_school_maps <- function(district) { ## generate maps in parallel ---- mclapply(district_focus, generate_school_maps, - mc.cores = 4, + mc.cores = 8, mc.cleanup = TRUE, mc.preschedule = TRUE, mc.silent = FALSE)