-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 07-vector-shapefile-attributes-in-r.Rmd #448
Conversation
In the line width example, the "size" aesthetic doesn't work... updated to "linewidth"
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/datacarpentry/r-raster-vector-geospatial/compare/md-outputs..md-outputs-PR-448 The following changes were observed in the rendered markdown documents:
What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2024-11-23 18:35:18 +0000 |
Note that this issue shows up again in the challenge, so the fix should be consistently applied throughout the lesson. |
the warning is correct, it doesn't make a lot of sense to use a discrete value (that could be ordered in terms of 'size' of path, but isn't) and map it onto what is by convention if not definition an aesthetic usually used for continuous or at least ordered data. That said, for illustrative purposes it's fine, and it might even be a good segue into letting learners think a bit about how best to visualize different types of attributes, and letting them know that ggplot2 has a lot of (usually very reasonable) opinions and defaults. |
this will also close #448 |
Auto-generated via `{sandpaper}` Source : fffaf6e Branch : main Author : Jon Jablonski <[email protected]> Time : 2024-11-23 19:06:15 +0000 Message : Merge pull request #448 from rfbrown/patch-1 Update 07-vector-shapefile-attributes-in-r.Rmd
Auto-generated via `{sandpaper}` Source : 5c072c8 Branch : md-outputs Author : GitHub Actions <[email protected]> Time : 2024-11-23 19:07:55 +0000 Message : markdown source builds Auto-generated via `{sandpaper}` Source : fffaf6e Branch : main Author : Jon Jablonski <[email protected]> Time : 2024-11-23 19:06:15 +0000 Message : Merge pull request #448 from rfbrown/patch-1 Update 07-vector-shapefile-attributes-in-r.Rmd
Please briefly summarise the changes made in the pull request, and the reason(s) for making these changes.
In the line width example, the
size
aesthetic doesn't work (i.e., the lines are all the same size). We updated tolinewidth
as a proposed solution. However, we get the following warning (which also appears when usingsize
), so this may not be the best fix: "Warning message: Using linewidth for a discrete variable is not advised."