Created
June 13, 2020 16:11
-
-
Save lsaravia/5ac1b3cd9539f6a66cbbd751105e79ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sp_by_hour <- data%>% mutate_at(vars(Species),factor)%>% | |
group_by(Station,Species,.drop=FALSE)%>% | |
mutate(hora=hour(DateTimeOriginal))%>% | |
filter(Species=='fox'|Species=='people') | |
sp_by_hour_plot <- ggplot(sp_by_hour, aes(x =hora, fill = Species)) + | |
geom_bar(width = .95) + | |
coord_polar(start = 0) + | |
theme_minimal() + | |
scale_fill_manual(values = alpha(c("blue", "red"), .5)) + | |
scale_x_continuous("", limits = c(0,24), breaks = seq(0,24), labels = seq(0,24))+ | |
scale_y_continuous("Detecciones por hora (log)",trans="log10")+ | |
labs(fill = "",size=50)+ | |
theme(text = element_text(size = 20)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment