Skip to content

Commit f2d3161

Browse files
authored
Update 07-vector-shapefile-attributes-in-r.Rmd
Update element_rect(size) to element_rect(line_width) to address warning: The `size` argument of `element_rect()` is deprecated as of ggplot2 3.4.0. ℹ Please use the `linewidth` argument instead.
1 parent f0bb727 commit f2d3161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

episodes/07-vector-shapefile-attributes-in-r.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ ggplot() +
439439
scale_color_manual(values = road_colors) +
440440
labs(color = 'Road Type') +
441441
theme(legend.text = element_text(size = 20),
442-
legend.box.background = element_rect(size = 1)) +
442+
legend.box.background = element_rect(linewidth = 1)) +
443443
ggtitle("NEON Harvard Forest Field Site",
444444
subtitle = "Roads & Trails - Modified Legend") +
445445
coord_sf()

0 commit comments

Comments
 (0)