From e488918b3795340d729d0dddcff9232316fa377a Mon Sep 17 00:00:00 2001 From: Camila Vargas Poulsen <35848897+camilavargasp@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:46:58 -0800 Subject: [PATCH 1/5] trying updating action --- .github/workflows/deploy_bookdown.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy_bookdown.yml b/.github/workflows/deploy_bookdown.yml index b25f216..ccbd767 100644 --- a/.github/workflows/deploy_bookdown.yml +++ b/.github/workflows/deploy_bookdown.yml @@ -2,6 +2,7 @@ on: push: branches: - main + - fix-links @@ -10,13 +11,13 @@ name: renderbook jobs: bookdown: name: Render-Book - runs-on: macOS-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: r-lib/actions/setup-r@v1 - - uses: r-lib/actions/setup-pandoc@v1 + - uses: actions/checkout@v4 + - uses: r-lib/actions/setup-r@v2 + - uses: r-lib/actions/setup-pandoc@v2 - name: Install TinyTeX - uses: r-lib/actions/setup-tinytex@v1 + uses: r-lib/actions/setup-tinytex@v2 env: # install full prebuilt version TINYTEX_INSTALLER: TinyTeX @@ -56,4 +57,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_PAT }} with: build_dir: _book/ # "_site/" by default - email: ${{ secrets.EMAIL }} # must be a verified email \ No newline at end of file + email: ${{ secrets.EMAIL }} # must be a verified email From 787aebf60e4300aae3a91e858f824115a23e9813 Mon Sep 17 00:00:00 2001 From: Camila Vargas Poulsen <35848897+camilavargasp@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:54:49 -0800 Subject: [PATCH 2/5] updating artifact action to v4 --- .github/workflows/deploy_bookdown.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_bookdown.yml b/.github/workflows/deploy_bookdown.yml index ccbd767..5db716d 100644 --- a/.github/workflows/deploy_bookdown.yml +++ b/.github/workflows/deploy_bookdown.yml @@ -29,7 +29,7 @@ jobs: run: Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")' - name: Render pdfbook run: Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")' - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: _book path: _book/ @@ -45,7 +45,7 @@ jobs: - name: Checkout uses: actions/checkout@master - name: Download artifact - uses: actions/download-artifact@v1.0.0 + uses: actions/download-artifact@v4 with: # Artifact name name: _book # optional From 3a54dcbb1f84854373a3395dc6407502c38b1979 Mon Sep 17 00:00:00 2001 From: Camila Vargas Poulsen <35848897+camilavargasp@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:12:11 -0800 Subject: [PATCH 3/5] removing render to pdf part --- .github/workflows/deploy_bookdown.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy_bookdown.yml b/.github/workflows/deploy_bookdown.yml index 5db716d..7acfd21 100644 --- a/.github/workflows/deploy_bookdown.yml +++ b/.github/workflows/deploy_bookdown.yml @@ -27,8 +27,6 @@ jobs: run: Rscript -e 'install.packages(c("rmarkdown","bookdown","devtools"))' - name: Render gitbook run: Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")' - - name: Render pdfbook - run: Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")' - uses: actions/upload-artifact@v4 with: name: _book From 27af1210485d9dad61934ebaef0939450e9e0f8f Mon Sep 17 00:00:00 2001 From: Camila Vargas Poulsen <35848897+camilavargasp@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:43:34 -0800 Subject: [PATCH 4/5] triggering action with updated credentials --- .github/workflows/deploy_bookdown.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_bookdown.yml b/.github/workflows/deploy_bookdown.yml index 7acfd21..4611676 100644 --- a/.github/workflows/deploy_bookdown.yml +++ b/.github/workflows/deploy_bookdown.yml @@ -55,4 +55,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_PAT }} with: build_dir: _book/ # "_site/" by default - email: ${{ secrets.EMAIL }} # must be a verified email + email: ${{ secrets.EMAIL }} # must be a verified email [testing] From 7845303036bcef52dd40cbdd813e8784b9ca6f98 Mon Sep 17 00:00:00 2001 From: Camila Vargas Poulsen <35848897+camilavargasp@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:01:14 -0800 Subject: [PATCH 5/5] updating all links to you tube videos with new links provided by stanford team --- 02-visualization.Rmd | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/02-visualization.Rmd b/02-visualization.Rmd index c91f167..b7e34c9 100644 --- a/02-visualization.Rmd +++ b/02-visualization.Rmd @@ -222,13 +222,13 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 3. How to use the **Show Me** menu: - + ***Troubleshooting: Switching Rows and Columns*** 1. Lilli has a question that came up when she was exploring the Show Me menu. When she tried to go back to a bar chart, the chart was flipped! Watch Alfredo’s answer: - + ### Basic Plots Using the Marks Menu @@ -270,7 +270,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 4. Labels - + 5. Details @@ -278,7 +278,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 6. Tooltip - + ### Line Plot @@ -354,7 +354,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 1. Finally, let’s create a Scatter plot. Scatter plots are tricky; follow along with this video to learn about scatter plots in Tableau. - + ### Editing and Formatting the Axes @@ -468,7 +468,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” - Remove **Habitat** from the Marks menu by dragging it to the left column. - This is a fun example of the many possible options you have by adding dimensions and measures into the Marks menu. 1. Create a timeseries with multiple factors - + 1. Create a scatter plot with multiple factors - In a new sheet, drag **Biomass** into **Columns** and **Size** into **Rows**. Name this sheet “Scatter2” - Change the Size from Sum to Average by right-clicking **Size**, choose **Measure** and choose **Average**: @@ -530,11 +530,11 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 3. Another interesting feature of maps in Tableau is that you are not limited to coordinates. For example, your data set can include country names instead. - + ### Filters - + ### Dynamic Tables @@ -545,7 +545,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” - Everything has to be discrete because the software will always attempt to plot continuous data as a chart, not as text. - You can use filters, sort, and all the other functionalities that you learned for other types of plots. Tables in Tableau are similar to dynamic tables in Excel. - + ### Save Your Work @@ -592,12 +592,12 @@ https://www.tableau.com/ and select “Try Tableau for Free.” ### Convert Units Using Calculated Fields 1. So far we have mostly used measures to create plots by using SUM and AVERAGE. In certain situations, however, we might need to perform some operations by using one or more variables or calculate a new field. In the example below you will see how these calculated fields can be used to change a value from grams to tonnes. - + ### Manually Calculate Average 1. While Tableau provides an easy way to calculate the AVERAGE through using the right click functionalities on a field that is being used in an active chart, there are other ways to estimate it manually, and with more control over what the software is doing. The video below shows how to do this and how it compares to Tableau’s automatic method. - + ### More Functions @@ -625,7 +625,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” - Activate labels by clicking on **Label** in the Marks menu and check **Show mark labels** and change the font size to 14pt. ![](images/m3s4_pie-show-labels.png) 1. Next, follow along as Alfredo shows you how to calculate percentages of total and display them in the label. - + 1. Just like with Calculated Fields, Table Calculations are a powerful tool in Tableau’s repository. If you want to explore more resources, go to: - [https://help.tableau.com/current/pro/desktop/en-us/calculations_tablecalculations.htm](https://help.tableau.com/current/pro/desktop/en-us/calculations_tablecalculations.htm) @@ -659,18 +659,18 @@ https://www.tableau.com/ and select “Try Tableau for Free.” ### Introduction to Dashboards 1. The very first thing to learn about dashboards is how to add different elements to it. Not everything is about the interactive charts, but also the text, symbols and other elements that help you convey a story for the reader. In the video below, you will learn how to set up your canvas and add elements to it. - + ### Floating Dashboards 1. Another important skill to master is the correct positioning of the elements in a dashboard. While Tableau tries to help with a tiled arrangement (as in the video above), it is important that you know how to gain full control of the exact size and position of each item that you add. The video below will help you get familiar with these important skills. - + 2. Remember that when working with graphic designers, managing sizes and positions is extremely important. Make sure to practice these skills. ### Actions: Filter and Highlight 1. Once you have added various elements, and charts, to your dashboards, it is time to make them interact with each other. The video below will show you two methods (filtering and highlighting) to use one chart to control the items in another chart. We will also cover some common troubleshooting situations. - + ### Basics Dashboards: Conclusions @@ -719,19 +719,19 @@ https://www.tableau.com/ and select “Try Tableau for Free.” ### Recap: Tooltip Customization and Exact Colors 1. Before we get started, let’s remind ourselves of the importance of using good tooltips and the perfect colors. When working with graphic designers, ask them for the specific color code, so that you can reproduce their vision accurately. - + ### Background Images 1. When creating dashboards, Tableau usually prefers solid colors. However, you can add your own images to make it more lively. Remember to use PNGs with transparent backgrounds whenever possible. The video below shows how to do so. - + ### Custom Shapes 1. Wouldn’t it be cool if you could have a little image of each fish species in your database show up on top of their respective bar plot or instead of the little circles in a scatter plot? This is your lucky day, that is exactly what the video below will show you how to do. 1. Before you begin this section, download [this folder of images](https://github.com/NCEAS/data-training-picrc-cos/raw/main/images/TNC%20-%20Fish%20Images.zip) and save it to your desktop folder “Tableau Data Training.” - + 3. Alfredo’s tips for custom shapes: - *Save the files as .png with transparent background*. @@ -742,12 +742,12 @@ https://www.tableau.com/ and select “Try Tableau for Free.” 1. So far, we have focused on using sheets to filter each other when together in a dashboard. However, sometimes we might want to use a field (not a sheet) to filter the information in the whole dashboard. 1. Below, you will find an example of how to do this. - + ### Dynamic Text Elements 1. Another important aspect of using interactive elements in Tableau is that we not only have the possibility to filter charts, but also tables. Remember, Tableau is a table manager in the end. While this might not seem too helpful, the video below will show you how powerful this concept can be. - + ### Creating a Template @@ -756,7 +756,7 @@ https://www.tableau.com/ and select “Try Tableau for Free.” ### Graphic Design: Conclusions 1. Congratulations! You have completed all of the technical Tableau skill sessions of this training. You have come a long way, and while you may not realize it yet, you are ready to create some of those amazing dashboards that you have seen published on the web or that we saw in our introductory session to Tableau. The video below will help you notice how simple elements can add up to amazing visualizations. - + 2. Check out https://public.tableau.com/app/profile/datamares to explore a wide range of dashboards that you can create using Tableau.