Created
August 22, 2016 07:42
-
-
Save AndreaCirilloAC/ef26e3e8a43c0f6aae80aa7630fd4297 to your computer and use it in GitHub Desktop.
bike sharing in washington by season
This file contains 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
library(rio) | |
library(dplyr) | |
library(ggplot2) | |
# data from: https://www.kaggle.com/c/bike-sharing-demand/data | |
rides_stat <- import ("train.csv") | |
rides_stat %>% | |
group_by(season) %>% | |
summarise(total_rides = sum(count),mean_temp = mean(temp)) %>% | |
ggplot(aes(x=season,y=total_rides, fill = mean_temp)) + | |
geom_bar(stat='identity')+ | |
coord_flip() |
Author
AndreaCirilloAC
commented
Aug 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment