
WebR
WebR is is an R session running directly in your browser. This allows you to run R code on the web without the need for connecting to a back-end server running R.
When WebR has loaded and the requested packages have been installed, you can run R code and see the results in the code chunks below.
Most packages on CRAN are available in WebR but they must be downloaded and installed on the user’s browser each time they launch the webpage. Depending on the number of packages being installed and the user’s internet speed, this could take some time. You can see a table of available packages here.
Exercise
Calculate and plot the incidence again, this time using an interval of 1 week.
Your result should look like the plot below
Expected Result
Solution Code
inci <- incidence(
ebola,
date_index = "date_of_onset",
interval = "week"
)
plot(inci)