corona's Introduction
corona's People
Forkers
junghunchae mainwaring jskuk mohelmy lagvier sreeleshps lucaz01 foocheeyoong brianmwangy gundpvro kashenfelter jha95 trinetta mergingfields uvrenight williammajanja-zz raffdoc amranrahim imarcello sebastad danielbonhaure griu raniereramos hussain-alsalman rjcc cstanton370 ivco19 gouxiaoyun123 balala123xiaolaodi stinco huqixi test00dezwebsite stjordanis ashu1click aqsatariqcorona's Issues
Change Countries Names inside countries object
Hi...
I realized that you change the names of the countries in Corona_files in order to match with NAME column of countries of the map using dataCook function, however pop was not used inside of the function
Also Congo Kinshasa is not the same of Congo Brazzaville, they are two different countries.
If I would like to use your project and change certain things (adding tabs, and summary, etc), how would I cite your master work (copy rights etc).
US Cases Looks wrong
Dr.,
Good evening. I'm looking at John Hopkins and it still says 1323 and your map say 2266 on 3/12/2020.
Thanks
Plot cases over time
Hi I was just playing with your code to see if I could plot cases ove time. I'm sure you've already looked at this but I think it would be a useful additional tab on you app. Here is a sample code to summarise and plot by country over time. The first plot is a normal y axis, the second plot is an log y axis.
URL <- RCurl::getURL("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv")
data <- read.csv(text = URL, check.names = F)
df <-data %>% tidyr::pivot_longer(-c(Province/State
,Country/Region
,Lat,Long), names_to = "date", values_to = "cases")
df <- df[,c(1,2,5,6)]
df$date <- lubridate::parse_date_time(df$date, orders = c("mdy"))
df <- df %>% dplyr::group_by(Country/Region
,date) %>% dplyr::summarise(cases = sum(cases))
plotly::plot_ly(df,x = ~date, y = ~cases, color = ~Country/Region
, type = "scatter",mode = "lines")
plotly::plot_ly(df,x = ~date, y = ~cases, color = ~Country/Region
, type = "scatter",mode = "lines") %>%
layout(yaxis = list(type = "log"))
Code not working correctly
Some country/region name changed
Due to some change in the data, the case numbers in some countries were not shown correctly when the mouse was moved there.
Please consider adding the following lines after line 45 :
data$`Country/Region`[data$`Country/Region`=="Korea, South"]<- "South Korea"
data$`Country/Region`[data$`Country/Region`=="Taiwan*"]<- "Taiwan"
data$`Country/Region`[data$`Country/Region`=="Holy See"]<- "Vatican"
Pop csv file
Hi, Dr Fabach! thank you for sharing the code.
I am trying to make it reproducible to show my students, but I could not find the pop.csv table.
Is possible to add this table?
Thank you.
Best,
Luis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.