From e10c6be8345e948a131369c771dc86e1d314f5de Mon Sep 17 00:00:00 2001 From: Emi Tanaka Date: Tue, 9 Apr 2024 20:33:13 +1000 Subject: [PATCH] Built site for gh-pages --- .nojekyll | 2 +- help.html | 26 +-------- index.html | 26 +-------- materials.html | 36 +++---------- next-time.html | 26 +-------- search.json | 4 +- site_libs/bootstrap/bootstrap.min.css | 2 +- site_libs/htmltools-fill-0.5.8/fill.css | 21 ++++++++ site_libs/quarto-nav/quarto-nav.js | 1 - site_libs/quarto-search/quarto-search.js | 65 +++++----------------- site_libs/revealjs/dist/theme/quarto.css | 2 +- sitemap.xml | 20 +++---- slack.html | 26 +-------- slides/slide-end.html | 28 ++-------- slides/slide1.html | 68 ++++++++++++------------ slides/slide2.html | 32 ++--------- slides/slide3.html | 32 ++--------- slides/slide4.html | 30 ++--------- slides/slide5.html | 28 ++-------- 19 files changed, 117 insertions(+), 358 deletions(-) create mode 100644 site_libs/htmltools-fill-0.5.8/fill.css diff --git a/.nojekyll b/.nojekyll index e63ea88..a211ff0 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -41bd3824 \ No newline at end of file +d3fc7186 \ No newline at end of file diff --git a/help.html b/help.html index 3b668db..a6d0a67 100644 --- a/help.html +++ b/help.html @@ -2,7 +2,7 @@ - + @@ -275,24 +275,6 @@

Providing feedback

// clear code selection e.clearSelection(); }); - var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); - var mailtoRegex = new RegExp(/^mailto:/); - var filterRegex = new RegExp("https:\/\/anu-bdsi\.github\.io\/workshop-data-vis-R1\/"); - var isInternal = (href) => { - return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); - } - // Inspect non-navigation links and adorn them if external - var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)'); - for (var i=0; iProviding feedback try { href = new URL(href).hash; } catch {} const id = href.replace(/^#\/?/, ""); const note = window.document.getElementById(id); - if (note) { - return note.innerHTML; - } else { - return ""; - } + return note.innerHTML; }); } const xrefs = window.document.querySelectorAll('a.quarto-xref'); diff --git a/index.html b/index.html index 896ac1b..12a84d8 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + @@ -468,24 +468,6 @@

Materials

// clear code selection e.clearSelection(); }); - var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); - var mailtoRegex = new RegExp(/^mailto:/); - var filterRegex = new RegExp("https:\/\/anu-bdsi\.github\.io\/workshop-data-vis-R1\/"); - var isInternal = (href) => { - return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); - } - // Inspect non-navigation links and adorn them if external - var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)'); - for (var i=0; iMaterials try { href = new URL(href).hash; } catch {} const id = href.replace(/^#\/?/, ""); const note = window.document.getElementById(id); - if (note) { - return note.innerHTML; - } else { - return ""; - } + return note.innerHTML; }); } const xrefs = window.document.querySelectorAll('a.quarto-xref'); diff --git a/materials.html b/materials.html index 79a4273..2593085 100644 --- a/materials.html +++ b/materials.html @@ -2,7 +2,7 @@ - + @@ -235,7 +235,7 @@ }; // Store cell data -globalThis.qwebrCellDetails = [{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"true","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-1","classes":"","read-only":"false","comment":""},"code":"data(crampton.pig, package = \"agridat\")\nstr(crampton.pig)","id":1},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-2","classes":"","read-only":"false","comment":""},"code":"ggplot(crampton.pig, aes(___)) + \n geom_density() ","id":2},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-3","classes":"","read-only":"false","comment":""},"code":"ggplot(crampton.pig, aes(___)) + \n geom____() ","id":3},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-4","classes":"","read-only":"false","comment":""},"code":"ggplot(crampton.pig, aes(___, ___, color = ___, size = ___)) + \n geom____()","id":4},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-5","classes":"","read-only":"false","comment":""},"code":"ggplot(crampton.pig, aes(___, ___, fill = ___)) + \n geom_tile(color = \"black\", linewidth = 2)","id":5},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-6","classes":"","read-only":"false","comment":""},"code":"pigdata <- crampton.pig |> \n # make id for each pig\n mutate(pig = 1:n()) |> \n rename(initial = weight1,\n final = weight2) |> \n # reshape data\n ___ |> \n # change the order of the levels\n mutate(period = factor(period, levels = c(\"initial\", \"final\"))\n\nggplot(pigdata, aes(___, ___, group = pig, color = ___)) +\n geom_line()","id":6},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"true","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-7","classes":"","read-only":"false","comment":""},"code":"str(diamonds)","id":7},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-8","classes":"","read-only":"false","comment":""},"code":"ggplot(diamonds, aes(___)) + \n geom____() ","id":8},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-9","classes":"","read-only":"false","comment":""},"code":"ggplot(diamonds, aes(___)) + \n geom____(___ = 1) ","id":9},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-10","classes":"","read-only":"false","comment":""},"code":"ggplot(diamonds, aes(___, ___, fill = ___)) + \n geom____()","id":10},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-11","classes":"","read-only":"false","comment":""},"code":"ggplot(heart2, aes(___, ___)) + \n geom_density_2d_filled()","id":11},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-12","classes":"","read-only":"false","comment":""},"code":"ggplot(diamonds, aes(___, ___)) + \n geom____()","id":12},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"true","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-13","classes":"","read-only":"false","comment":""},"code":"data(welch.bermudagrass, package = \"agridat\")\nstr(welch.bermudagrass)","id":13},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-14","classes":"","read-only":"false","comment":""},"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2)","id":14},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-15","classes":"","read-only":"false","comment":""},"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, \n aes(___)) ","id":15},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-16","classes":"","read-only":"false","comment":""},"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, ___) ","id":16},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-17","classes":"","read-only":"false","comment":""},"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, ___) ","id":17},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"true","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-18","classes":"","read-only":"false","comment":""},"code":"data(scurvy, package = \"medicaldata\")\nstr(scurvy)","id":18},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-19","classes":"","read-only":"false","comment":""},"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____()","id":19},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-20","classes":"","read-only":"false","comment":""},"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = position_dodge2(preserve = ___))","id":20},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-21","classes":"","read-only":"false","comment":""},"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = ___)","id":21},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-22","classes":"","read-only":"false","comment":""},"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = ___) +\n coord____","id":22},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"true","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-23","classes":"","read-only":"false","comment":""},"code":"data(nass.wheat, package = \"agridat\")\ndata(nass.corn, package = \"agridat\")\ndata(nass.soybean, package = \"agridat\")\n\nstr(nass.wheat)\nstr(nass.corn)\nstr(nass.soybean)","id":23},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-24","classes":"","read-only":"false","comment":""},"code":"crops_data <- ___\n\nggplot(crops_data, aes(___, ___)) + \n geom____() + \n geom____(width = 0.1)","id":24},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-25","classes":"","read-only":"false","comment":""},"code":"wheat2011_data <- nass.wheat |> \n ___(year == 2011) \n\nhighlight <- function(.data) filter(.data, acres > 4000000 | yield > 80)\n\nggplot(wheat2011_data, aes(___, yield)) + \n ___() + \n ___(data = ___, color = \"red\") + ","id":25},{"options":{"output":"true","dpi":72,"fig-width":7,"autorun":"false","fig-cap":"","out-width":"700px","message":"true","context":"interactive","results":"markup","fig-height":5,"out-height":"","warning":"true","label":"unnamed-chunk-26","classes":"","read-only":"false","comment":""},"code":"wheat2011_data_with_map <- nass.wheat |> \n filter(year == 2011) |> \n mutate(region = tolower(state)) |> \n right_join(map_data(\"state\"), by = \"region\")\n\nggplot(wheat2011_data_with_map, aes(___, ___)) + \n geom_polygon(aes(___), color = \"black\") +\n ___(\"label\", x = -120, y = 27, label = \"2011\", size = 8)","id":26}]; +globalThis.qwebrCellDetails = [{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-1","dpi":72,"comment":"","message":"true","results":"markup","autorun":"true","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":1,"code":"data(crampton.pig, package = \"agridat\")\nstr(crampton.pig)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-2","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":2,"code":"ggplot(crampton.pig, aes(___)) + \n geom_density() "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-3","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":3,"code":"ggplot(crampton.pig, aes(___)) + \n geom____() "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-4","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":4,"code":"ggplot(crampton.pig, aes(___, ___, color = ___, size = ___)) + \n geom____()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-5","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":5,"code":"ggplot(crampton.pig, aes(___, ___, fill = ___)) + \n geom_tile(color = \"black\", linewidth = 2)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-6","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":6,"code":"pigdata <- crampton.pig |> \n # make id for each pig\n mutate(pig = 1:n()) |> \n rename(initial = weight1,\n final = weight2) |> \n # reshape data\n ___ |> \n # change the order of the levels\n mutate(period = factor(period, levels = c(\"initial\", \"final\"))\n\nggplot(pigdata, aes(___, ___, group = pig, color = ___)) +\n geom_line()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-7","dpi":72,"comment":"","message":"true","results":"markup","autorun":"true","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":7,"code":"str(diamonds)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-8","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":8,"code":"ggplot(diamonds, aes(___)) + \n geom____() "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-9","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":9,"code":"ggplot(diamonds, aes(___)) + \n geom____(___ = 1) "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-10","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":10,"code":"ggplot(diamonds, aes(___, ___, fill = ___)) + \n geom____()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-11","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":11,"code":"ggplot(heart2, aes(___, ___)) + \n geom_density_2d_filled()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-12","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":12,"code":"ggplot(diamonds, aes(___, ___)) + \n geom____()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-13","dpi":72,"comment":"","message":"true","results":"markup","autorun":"true","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":13,"code":"data(welch.bermudagrass, package = \"agridat\")\nstr(welch.bermudagrass)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-14","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":14,"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-15","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":15,"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, \n aes(___)) "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-16","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":16,"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, ___) "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-17","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":17,"code":"ggplot(welch.bermudagrass, aes(___)) + \n geom____(alpha = 0.2, ___) "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-18","dpi":72,"comment":"","message":"true","results":"markup","autorun":"true","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":18,"code":"data(scurvy, package = \"medicaldata\")\nstr(scurvy)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-19","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":19,"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____()"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-20","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":20,"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = position_dodge2(preserve = ___))"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-21","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":21,"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = ___)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-22","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":22,"code":"ggplot(scurvy, aes(___, fill = ___)) + \n geom____(position = ___) +\n coord____"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-23","dpi":72,"comment":"","message":"true","results":"markup","autorun":"true","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":23,"code":"data(nass.wheat, package = \"agridat\")\ndata(nass.corn, package = \"agridat\")\ndata(nass.soybean, package = \"agridat\")\n\nstr(nass.wheat)\nstr(nass.corn)\nstr(nass.soybean)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-24","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":24,"code":"crops_data <- ___\n\nggplot(crops_data, aes(___, ___)) + \n geom____() + \n geom____(width = 0.1)"},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-25","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":25,"code":"wheat2011_data <- nass.wheat |> \n ___(year == 2011) \n\nhighlight <- function(.data) filter(.data, acres > 4000000 | yield > 80)\n\nggplot(wheat2011_data, aes(___, yield)) + \n ___() + \n ___(data = ___, color = \"red\") + "},{"options":{"read-only":"false","fig-cap":"","output":"true","out-width":"700px","context":"interactive","label":"unnamed-chunk-26","dpi":72,"comment":"","message":"true","results":"markup","autorun":"false","fig-height":5,"out-height":"","fig-width":7,"classes":"","warning":"true"},"id":26,"code":"wheat2011_data_with_map <- nass.wheat |> \n filter(year == 2011) |> \n mutate(region = tolower(state)) |> \n right_join(map_data(\"state\"), by = \"region\")\n\nggplot(wheat2011_data_with_map, aes(___, ___)) + \n geom_polygon(aes(___), color = \"black\") +\n ___(\"label\", x = -120, y = 27, label = \"2011\", size = 8)"}]; +
+ @@ -12026,8 +12046,8 @@

Available geom layers in ggplot2

Available stat layers in ggplot2

-
- +
+
@@ -13315,7 +13335,7 @@

ggplot2 cheatsheet

Exercise time

-

30:00

+

30:00

@@ -14491,24 +14511,6 @@

Exercise time

// clear code selection e.clearSelection(); }); - var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); - var mailtoRegex = new RegExp(/^mailto:/); - var filterRegex = new RegExp("https:\/\/anu-bdsi\.github\.io\/workshop-data-vis-R1\/"); - var isInternal = (href) => { - return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); - } - // Inspect non-navigation links and adorn them if external - var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)'); - for (var i=0; iExercise time try { href = new URL(href).hash; } catch {} const id = href.replace(/^#\/?/, ""); const note = window.document.getElementById(id); - if (note) { - return note.innerHTML; - } else { - return ""; - } + return note.innerHTML; }); } const findCites = (el) => { diff --git a/slides/slide2.html b/slides/slide2.html index 7a9569f..6af49fb 100644 --- a/slides/slide2.html +++ b/slides/slide2.html @@ -5906,7 +5906,7 @@ font-size: 2.5em; } - + ANU BDSIworkshop Data Visualisation with R Part 1 - The Grammar of Graphics @@ -5953,7 +5953,7 @@ margin: 0 0.8em 0.2em -1em; vertical-align: middle; } - + - + ANU BDSIworkshop Data Visualisation with R Part 1 - Drawing multiple layers with ggplot2 @@ -5953,7 +5953,7 @@ margin: 0 0.8em 0.2em -1em; vertical-align: middle; } - + - + ANU BDSIworkshop Data Visualisation with R Part 1 - Guide and scale with ggplot2 @@ -5953,7 +5953,7 @@ margin: 0 0.8em 0.2em -1em; vertical-align: middle; } - + - + ANU BDSIworkshop Data Visualisation with R Part 1 - Wrap up @@ -5953,7 +5953,7 @@ margin: 0 0.8em 0.2em -1em; vertical-align: middle; } - +