Here is the base code, kudos to this answer:
require(RCurl)
require(foreign)
x = getURL("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv")
corona = read.csv(text = x, sep =",",header = T)
Italy <- corona[corona$Country.Region=='Italy',][1,5:ncol(corona)]
library(xts)
plot(xts(unlist(Italy),
order.by = as.Date(sub("X", "", names(Italy)),"%m.%d.%y")),
ylim=c(0,20000), main="Number Cov-19 Italy")
Naturally I would like the values in the y axis to be the number of cases, as in here, but instead I get the actual log base 2 if I run something like:
LogItaly <- log2(Italy[,30:ncol(Italy)])
plot(xts(unlist(LogItaly),
order.by = as.Date(sub("X", "", names(LogItaly)),"%m.%d.%y")),
main=expression(paste(2^y, " - Doubling of no. cases Cov-19 ITL")),
ylim=c(0,16))