Skip to content

Commit 5c072c8

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : fffaf6e Branch : main Author : Jon Jablonski <jonjab@ucsb.edu> 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
1 parent c74d953 commit 5c072c8

5 files changed

+1096
-2
lines changed

07-vector-shapefile-attributes-in-r.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ We can use those line widths when we plot the data.
482482

483483
``` r
484484
ggplot() +
485-
geom_sf(data = lines_HARV, aes(color = TYPE, size = TYPE)) +
485+
geom_sf(data = lines_HARV, aes(color = TYPE, linewidth = TYPE)) +
486486
scale_color_manual(values = road_colors) +
487487
labs(color = 'Road Type') +
488488
scale_size_manual(values = line_widths) +
@@ -491,6 +491,10 @@ ggplot() +
491491
coord_sf()
492492
```
493493

494+
``` warning
495+
Warning: Using linewidth for a discrete variable is not advised.
496+
```
497+
494498
<div class="figure" style="text-align: center">
495499
<img src="fig/07-vector-shapefile-attributes-in-r-rendered-harv-paths-map-wide-1.png" alt="Roads and trails in the area demonstrating how to use different line thickness and colors." />
496500
<p class="caption">Roads and trails in the area demonstrating how to use different line thickness and colors.</p>

config.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#------------------------------------------------------------
2+
# Values for this lesson.
3+
#------------------------------------------------------------
4+
5+
# Which carpentry is this (swc, dc, lc, or cp)?
6+
# swc: Software Carpentry
7+
# dc: Data Carpentry
8+
# lc: Library Carpentry
9+
# cp: Carpentries (to use for instructor training for instance)
10+
# incubator: The Carpentries Incubator
11+
carpentry: 'dc'
12+
13+
# Overall title for pages.
14+
title: 'Introduction to Geospatial Raster and Vector Data with R'
15+
16+
# Date the lesson was created (YYYY-MM-DD, this is empty by default)
17+
created: '2015-10-22'
18+
19+
# Comma-separated list of keywords for the lesson
20+
keywords: 'software, data, lesson, The Carpentries'
21+
22+
# Life cycle stage of the lesson
23+
# possible values: pre-alpha, alpha, beta, stable
24+
life_cycle: 'transition-step-2'
25+
26+
# License of the lesson
27+
license: 'CC-BY 4.0'
28+
29+
# Link to the source repository for this lesson
30+
source: 'https://github.com/datacarpentry/r-raster-vector-geospatial/'
31+
32+
# Default branch of your lesson
33+
branch: 'main'
34+
35+
# Who to contact if there are any issues
36+
contact: 'team@carpentries.org'
37+
38+
# Navigation ------------------------------------------------
39+
#
40+
# Use the following menu items to specify the order of
41+
# individual pages in each dropdown section. Leave blank to
42+
# include all pages in the folder.
43+
#
44+
# Example -------------
45+
#
46+
# episodes:
47+
# - introduction.md
48+
# - first-steps.md
49+
#
50+
# learners:
51+
# - setup.md
52+
#
53+
# instructors:
54+
# - instructor-notes.md
55+
#
56+
# profiles:
57+
# - one-learner.md
58+
# - another-learner.md
59+
60+
# Order of episodes in your lesson
61+
episodes:
62+
- 01-raster-structure.Rmd
63+
- 02-raster-plot.Rmd
64+
- 03-raster-reproject-in-r.Rmd
65+
- 04-raster-calculations-in-r.Rmd
66+
- 05-raster-multi-band-in-r.Rmd
67+
- 06-vector-open-shapefile-in-r.Rmd
68+
- 07-vector-shapefile-attributes-in-r.Rmd
69+
- 08-vector-plot-shapefiles-custom-legend.Rmd
70+
- 09-vector-when-data-dont-line-up-crs.Rmd
71+
- 10-vector-csv-to-shapefile-in-r.Rmd
72+
- 11-vector-raster-integration.Rmd
73+
- 12-time-series-raster.Rmd
74+
- 13-plot-time-series-rasters-in-r.Rmd
75+
- 14-extract-ndvi-from-rasters-in-r.Rmd
76+
77+
# Information for Learners
78+
learners:
79+
80+
# Information for Instructors
81+
instructors:
82+
83+
# Learner Profiles
84+
profiles:
85+
86+
# Customisation ---------------------------------------------
87+
#
88+
# This space below is where custom yaml items (e.g. pinning
89+
# sandpaper and varnish versions) should live
90+
91+
92+
url: 'https://datacarpentry.org/r-raster-vector-geospatial'
Loading

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"episodes/04-raster-calculations-in-r.Rmd" "a100233c7c80bcae34c0112d10980d0d" "site/built/04-raster-calculations-in-r.md" "2024-11-19"
1111
"episodes/05-raster-multi-band-in-r.Rmd" "d5497625ea9f0fc04de5423d140bd655" "site/built/05-raster-multi-band-in-r.md" "2024-11-19"
1212
"episodes/06-vector-open-shapefile-in-r.Rmd" "9966d5678aea06e445f5b660a079482e" "site/built/06-vector-open-shapefile-in-r.md" "2024-11-19"
13-
"episodes/07-vector-shapefile-attributes-in-r.Rmd" "726f78cdabe6ebe90a609b31127674ca" "site/built/07-vector-shapefile-attributes-in-r.md" "2024-11-19"
13+
"episodes/07-vector-shapefile-attributes-in-r.Rmd" "52b29d9a45cdc739998eec5598749d36" "site/built/07-vector-shapefile-attributes-in-r.md" "2024-11-23"
1414
"episodes/08-vector-plot-shapefiles-custom-legend.Rmd" "733bf768d8f27d9c7e548e7f835fda67" "site/built/08-vector-plot-shapefiles-custom-legend.md" "2024-11-19"
1515
"episodes/09-vector-when-data-dont-line-up-crs.Rmd" "b3a4cc71f14583f1fcfc77d591ba9e62" "site/built/09-vector-when-data-dont-line-up-crs.md" "2024-11-19"
1616
"episodes/10-vector-csv-to-shapefile-in-r.Rmd" "fe9f2056f24f9f54689143b27c8c3615" "site/built/10-vector-csv-to-shapefile-in-r.md" "2024-11-19"

0 commit comments

Comments
 (0)