Skip to content

Fix st_length (should be st_distance) #2

@ldemaz

Description

@ldemaz

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions