Skip to content

Commit

Permalink
updates to ch1, 2, 3, 6, 10, 13, 16
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDougherty committed Jan 2, 2024
1 parent cf5a393 commit b5e3c8e
Show file tree
Hide file tree
Showing 155 changed files with 1,157 additions and 489 deletions.
2 changes: 1 addition & 1 deletion 01-choose.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Table: (\#tab:tools) Recommended Tools and Uses, with Chapter References
| Google My Maps simple map maker | | | | [Ch7](mymaps.html) | [Ch7](mymaps.html) | | | |
| Leaflet map code templates | | | | | [Ch12](leaflet.html) | | | |
| GitHub edit & host code | | | | | | | [Ch10](github.html) | |
| GitHub Desktop & Atom code editor | | | | | | | [Ch10](github-desktop-atom.html) | |
| GitHub Desktop & code editor | | | | | | | [Ch10](github-desktop-editor.html) | |
| GeoJson.io edit & draw geodata | | | | | | | | [Ch13](geojsonio.html) |
| Mapshaper edit & join geodata | | | | | | | | [Ch13](mapshaper.html) |
| Map Warper georeference images | | | | | | | | [Ch13](mapwarper.html) |
Expand Down
4 changes: 2 additions & 2 deletions 02-spreadsheet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Spreadsheet tools organize data in different formats. When you download spreadsh
knitr::include_graphics("images/02-spreadsheet/data-formats.png")
```

Tip: The Mac computer hides filename extensions by default, meaning you may not be able to see the abbreviated file format after the period, such as `data.csv` or `map.geojson`. We recommend that you change this setting by going to Finder > Preferences > Advanced, and check the box to *Show all filename extensions*, as shown in Figure \@ref(fig:mac-file-extensions).
Tip: The Mac computer hides filename extensions by default, meaning you may not be able to see the abbreviated file format after the period, such as `data.csv` or `map.geojson`. We recommend that you change this setting by going to Finder > Settings > Advanced, and check the box to *Show all filename extensions*, as shown in Figure \@ref(fig:mac-file-extensions). In older Mac operating systems, the steps were Finder > Preferences > Advanced.

(ref:mac-file-extensions) On a Mac, go to *Finder-Preferences-Advanced* and check the box to *Show all filename extensions*.
(ref:mac-file-extensions) On a Mac, go to *Finder-Settings-Advanced* and check the box to *Show all filename extensions*.

```{r mac-file-extensions, out.width=400, fig.cap="(ref:mac-file-extensions)"}
knitr::include_graphics("images/02-spreadsheet/mac-file-extensions.png")
Expand Down
6 changes: 3 additions & 3 deletions 03-find.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ Write a short but meaningful file name. While there's no perfect system, a good
- census2010_population_by_county.ods
- eurostat-1999-2019-co2-emissions.xlsx

The second step is to save more detailed source notes about the data on a separate tab inside the spreadsheet, which works for multi-tab spreadsheet tools such as Google Sheets, LibreOffice, and Excel. Add a new tab named *notes* that describes the origins of the data, a longer description for any abbreviated labels, and when it was last updated, as shown in Figure \@ref(fig:sheets-with-tabs). Add your own name and give credit to collaborators who worked with you. If you need to create a CSV file from this data, give it a parallel name to your multi-tabbed spreadsheet file so that you can easily find your original source notes again in the future.
The second step is to save more detailed source notes about the data on a separate tab inside the spreadsheet, which works for multi-tab spreadsheet tools such as Google Sheets, LibreOffice, and Excel. In Google Sheets, click the plus symbol on the lower tabs to a new tab, then rename it as *notes*, as shown in Figure \@ref(fig:sheets-with-tabs). Describe the origins of the data, a longer description for any abbreviated labels, when it was last updated, and add your own name and give credit to collaborators who worked with you. If you need to create a CSV file from this data, give it a parallel name to your multi-tabbed spreadsheet file so that you can easily find your original source notes again in the future.

(ref:sheets-with-tabs) Create separate spreadsheet tabs for data, notes, and backup.
(ref:sheets-with-tabs) Create separate Google Sheet tabs for data, notes, and backup.

```{r sheets-with-tabs, out.width=600, fig.cap="(ref:sheets-with-tabs)"}
knitr::include_graphics("images/03-find/sheets-with-tabs.png")
knitr::include_graphics("images/03-find/sheets-with-tabs-annotated.png")
```

A third step is to make a backup of the original data before cleaning or editing it. For a simple one-sheet file in a multi-tab spreadsheet tool, right-click on the tab containing the data to make a duplicate copy in another tab, also shown in Figure \@ref(fig:sheets-with-tabs). Clearly label the new tab as a backup and leave it alone! For CSV files or more complex spreadsheets, create a separate backup file. To be clear, these simple backup strategy only helps you from making non-fixable edits to your original data. Make sure you have a broader strategy to backup your files from your computer or cloud account in case either of those are deleted or those systems crash.
Expand Down
10 changes: 9 additions & 1 deletion 06-chart.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ knitr::include_graphics("images/06-chart/design-principles-turn-bar.png")
#### Arrange elements logically {-}
If your bar chart shows different categories, consider ordering them, like is shown in Figure \@ref(fig:design-principles-order-categories). You might want to sort them alphabetically, which can be useful if you want the reader to be able to quickly look up an item, such as their town. Ordering categories by value is another common technique that makes comparisons possible. If your columns represent a value of something at a particular time, they have to be ordered sequentially, of course.

(ref:design-principles-order-categories) For long labels, use horizontal bar charts.
(ref:design-principles-order-categories) Use logical ordering for your bars, such as alphabetical or by value.

```{r design-principles-order-categories, fig.cap="(ref:design-principles-order-categories)"}
knitr::include_graphics("images/06-chart/design-principles-order-categories.png")
Expand Down Expand Up @@ -628,6 +628,14 @@ Tip: The *Refine* tab includes options to resort or group data rows, change the

9. After modifying your visualization, proceed to the *Publish and Embed* screen, and follow the prompts to share your work, or refer to the previous detailed Datawrapper tutorial.

Tip: You can also grant access to Datawrapper visualizations in shared folders with team members. First, go to *Menu > My Teams > Create a Team* to invite members. Second, go to *Archive > Recently Edited* to view Shared folders on the left margin, then drag a visualization into the folder to share it with those team members, as shown in Figure \@ref(fig:datawrapper-shared-folders).

(ref:datawrapper-shared-folders) After creating a team or accepting an invitation to a team, drag a visualization into its shared folder to grant access to others.

```{r datawrapper-shared-folders, out.width=400, fig.cap="(ref:datawrapper-shared-folders)"}
knitr::include_graphics("images/06-chart/datawrapper-shared-folders-annotated.png")
```

Now that you've completed a range chart, let's see how we can use Datawrapper to build scatter and bubble charts to show relationships between two or more variables.


Expand Down
Loading

0 comments on commit b5e3c8e

Please sign in to comment.