-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
geospaar/vignettes/unit2-module1.Rmd
Line 1048 in 3298cdd
| 5. Convert the `median_dist` to its centroid point. Call it `median_distp`. `filter` the `farmers_alb` data for season 1, and then find the 20 closest season 1 farmers to `median_distp`. To do that, create the new object `closest_20farmers` by using `mutate` with `st_length` to create a new variable `length` (convert it to numeric), and then `arrange` by variable *length* and slice out the top 20 observations. Plot `districts_alb` in grey, `median_dist` over that in khaki, `median_distp` as a solid purple circle, `farmers_alb` in blue, and `closest_20farmers` in red. Zero margins and width of 6 inches and height of 4 inches. |
Reactions are currently unavailable