blog/how-to-create-a-simple-coronavirus-dashboard-specific-to-your-country-in-r/ #73
Replies: 130 comments
-
Comment written by François @tuf on March 23, 2020 23:52:01: I just adding
I can't make it 'knit' |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 07:15:27: Thanks for your comment François. You may need to install these packages if they have not yet be installed before loading them. You can install packages with the |
Beta Was this translation helpful? Give feedback.
-
Comment written by Selma on March 24, 2020 07:46:19: there is an error about "recovered" object not found...please check. when I take out the recovered from the code it is working but with it is not possible. I checked the coronavirus dataframe and there is no recovered in type...only death and confirmed. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 08:26:44: Dear Selma, As of March 23rd some major changes are taking places in the format of the data (the recovered cases were removed from the data), which breaks the code. I'll have a look as soon as possible and edit the article accordingly. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 09:18:50: The dashboard and the code behind it have been updated. Let me know if you still encounter an error with this new version. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Fiona on March 24, 2020 10:15:47: Hi Antoine, thank you for this. I am getting this error when I run the code prior to knitting: Do you know how I can fix this? |
Beta Was this translation helpful? Give feedback.
-
Comment written by Selma on March 24, 2020 11:38:39: Thank you...I propose to aggregate the data using this approach (https://joachim-gassen.github.io/2020/03/tidying-the-john-hopkins-covid-19-data/...please) let me know if this is an interesting improvement...i will try it... |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 12:00:38: For which country are you trying to build your dashboard? I'll try on my side to see if I encounter the same issue. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 12:29:03: It's one possibility that I haven't tried. Let me know if it works. Or now that the dashboard and the code behind it have been updated so that it does not include recovered cases anymore, you can also simply use that code instead of aggregating. Regards, |
Beta Was this translation helpful? Give feedback.
-
Comment written by Victor Martin on March 24, 2020 12:32:50: Hi Antonie and thank you very much. I am getting the same error as Fiona even with Belgium. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 12:40:03: Interesting. I just had a try and it seems to work on my side. Can you run each code chunk separately and let me know at which line it breaks? And perhaps show the error you have. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Alan Wise on March 24, 2020 13:44:12: Hey, I'm trying to build it for the UK and I'm getting the error at line 42 |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 13:55:52: What error do you get? I managed to create a similar dashboard for UK just by replacing Belgium with United Kingdom (and making sure that I surround it with double backtick at line 230). Find the dashboard and code here: https://www.antoinesoetewey.com/files/coronavirus-dashboard-uk.html. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Comment written by Alan Wise on March 24, 2020 14:03:46:
|
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on March 24, 2020 14:06:07: Same error as Fiona and Victor above. Are you sure you installed the development version of the coronavirus package? You can do it with: If this still does not fix the issue, contact me and I'll see what I can do. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on June 07, 2020 16:35:01: If the error is object coronavirus not found it means that the coronavirus package has not been installed or loaded correctly. Remember that, in R, you first need to install and then load the coronavirus package before being able to use it (use the code I provided in my previous comment). This section may help you to understand better how packages work. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Niek on June 07, 2020 16:53:49: Dear Antoine, I thought I did load already the coronavirus package.
Skipping install of 'coronavirus' from a github remote, the SHA1 (87c04f17) has not changed since last install. Use Is this not correct? Gr. |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on June 07, 2020 18:47:01: You need to force the installation with: |
Beta Was this translation helpful? Give feedback.
-
Comment written by Niek on June 08, 2020 13:33:23: Tnx Antoine, Now I get, after forcing the installation: in R:
Is that OK? So yes, what now to do? Thanks again, |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on June 08, 2020 13:36:46: Hard for me to help you with this output. You can contact me, I'll reply and then you'll be able to send me your file. I'll check if your file works on my side. |
Beta Was this translation helpful? Give feedback.
-
Comment written by sedatalkan17052000 on June 14, 2020 12:51:33: How can I create dashboards for Turkey? I can't do it anyway |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on June 14, 2020 14:14:12: Here is the code for Turkey: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-turkey.Rmd Make sure to install the requested packages as explained in step 5 of the article before running the code. Hope this helps. Best, |
Beta Was this translation helpful? Give feedback.
-
Comment written by EAL MORG on July 01, 2020 18:10:21: yes, it is installed |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on July 01, 2020 18:16:33: I never had this issue so first make sure to update R and all packages. If it doesn't help, see this thread: forestgeo/learn#102. Some users had the same issues and managed to fix it. Hope this helps. Best, |
Beta Was this translation helpful? Give feedback.
-
Comment written by Mike-mohs on September 24, 2020 11:03:03: Dear Antoine, Than you very much for the tutorial and code, very interesting. When I try to knit the code I am receiving the following error:
This is using the base code without any changes, i have installed the devtools. Thanks |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on September 24, 2020 11:57:19: Dear Mike, The issue is due to the old Regards, |
Beta Was this translation helpful? Give feedback.
-
Comment written by KRISNA YUDHA on September 25, 2020 17:19:01: Dear Antoine, first of all, thank you very much. when I run the knit
|
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on September 27, 2020 16:24:04: Dear Krisna, Same issue than Mike (see previous comment). It is due to the old Hope this helps. Regards, |
Beta Was this translation helpful? Give feedback.
-
Comment written by sparklingjourney on December 02, 2020 22:13:00: Dear Antoine, Thank you for the helpful guide. I came across your guide as I was looking for a solution to my COVID-19 dashboard at https://sparklingjourney.github.io/COVID-Mobility-Dashboard/. I am new to GitHub Page, and I am eager to learn how to have the date updated everyday. In my codes, I use sys.date() to display the date and it would update the next day if I run the R codes locally. I wonder how to have the GitHub page updated everyday automatically for the date value. Thank you!! (the dashboard links to my codes in the github repository if needed.) |
Beta Was this translation helpful? Give feedback.
-
Comment written by Antoine Soetewey on December 03, 2020 18:14:46: Hello, Are you talking about the date displayed on the top left of your dashboard? I see in this line that you have set Moreover, I am not sure I understand your question correctly:
In the meantime, please let me know if Rami answered your question in this issue. Regards, |
Beta Was this translation helpful? Give feedback.
-
How to create a simple Coronavirus dashboard specific to your country in R - Stats and R
This article will help you to build a visually appealing dashboard about the spread of COVID-19 Coronavirus specific to a country in R using flexdashboard
https://statsandr.com/blog/how-to-create-a-simple-coronavirus-dashboard-specific-to-your-country-in-r/
Beta Was this translation helpful? Give feedback.
All reactions