Skip to content
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

Week one #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Week one #25

wants to merge 1 commit into from

Conversation

AbzAxness
Copy link

complete assignment part 2

select(County, contains("Precipitation")) %>%
filter(Precipitation_585_90 > mean(Precipitation_585_90)) %>%
pivot_longer(cols = -County)
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work here using pivot_longer to reshape the data from wide format to long format, with each row representing a unique combination of 'County' and a specific type of precipitation.

# fix the labels
theme(axis.text.x = element_text(angle = 90)) +
facet_wrap(~County)
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code for calculating number of counties is not here. The code for plotting a bar graph looks great.

plots <-
map(counties,
~ data_filtered %>% filter(County == .x) %>% ggplot(aes(x = name, y = value)) + geom_col())
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants