We are still facing the global crisis of the COVID-19 pendemic.As individuals we can do our part in keeping others safe by following the rules suggested by the government and WHO.This is the reprort by analysing coronavirus dataof the Bangladesh.
This is the code segment which we use to load the data
library(coronavirus)
data("coronavirus")
Now consider about the data description.
head(coronavirus)
## date province country lat long type cases
## 1 2020-01-22 Afghanistan 33 65 confirmed 0
## 2 2020-01-23 Afghanistan 33 65 confirmed 0
## 3 2020-01-24 Afghanistan 33 65 confirmed 0
## 4 2020-01-25 Afghanistan 33 65 confirmed 0
## 5 2020-01-26 Afghanistan 33 65 confirmed 0
## 6 2020-01-27 Afghanistan 33 65 confirmed 0
tail(coronavirus)
## date province country lat long type cases
## 87803 2020-05-07 Zhejiang China 29.1832 120.0934 recovered 0
## 87804 2020-05-08 Zhejiang China 29.1832 120.0934 recovered 0
## 87805 2020-05-09 Zhejiang China 29.1832 120.0934 recovered 0
## 87806 2020-05-10 Zhejiang China 29.1832 120.0934 recovered 0
## 87807 2020-05-11 Zhejiang China 29.1832 120.0934 recovered 0
## 87808 2020-05-12 Zhejiang China 29.1832 120.0934 recovered 0
unique(coronavirus$country)
## [1] "Afghanistan" "Albania"
## [3] "Algeria" "Andorra"
## [5] "Angola" "Antigua and Barbuda"
## [7] "Argentina" "Armenia"
## [9] "Austria" "Azerbaijan"
## [11] "Bahamas" "Bahrain"
## [13] "Bangladesh" "Barbados"
## [15] "Belarus" "Belgium"
## [17] "Belize" "Benin"
## [19] "Bhutan" "Bolivia"
## [21] "Bosnia and Herzegovina" "Botswana"
## [23] "Brazil" "Brunei"
## [25] "Bulgaria" "Burkina Faso"
## [27] "Burma" "Burundi"
## [29] "Cabo Verde" "Cambodia"
## [31] "Cameroon" "Central African Republic"
## [33] "Chad" "Chile"
## [35] "Colombia" "Comoros"
## [37] "Congo (Brazzaville)" "Congo (Kinshasa)"
## [39] "Costa Rica" "Cote d'Ivoire"
## [41] "Croatia" "Cuba"
## [43] "Cyprus" "Czechia"
## [45] "Denmark" "Diamond Princess"
## [47] "Djibouti" "Dominica"
## [49] "Dominican Republic" "Ecuador"
## [51] "Egypt" "El Salvador"
## [53] "Equatorial Guinea" "Eritrea"
## [55] "Estonia" "Eswatini"
## [57] "Ethiopia" "Fiji"
## [59] "Finland" "France"
## [61] "Gabon" "Gambia"
## [63] "Georgia" "Germany"
## [65] "Ghana" "Greece"
## [67] "Grenada" "Guatemala"
## [69] "Guinea" "Guinea-Bissau"
## [71] "Guyana" "Haiti"
## [73] "Holy See" "Honduras"
## [75] "Hungary" "Iceland"
## [77] "India" "Indonesia"
## [79] "Iran" "Iraq"
## [81] "Ireland" "Israel"
## [83] "Italy" "Jamaica"
## [85] "Japan" "Jordan"
## [87] "Kazakhstan" "Kenya"
## [89] "Korea, South" "Kosovo"
## [91] "Kuwait" "Kyrgyzstan"
## [93] "Laos" "Latvia"
## [95] "Lebanon" "Liberia"
## [97] "Libya" "Liechtenstein"
## [99] "Lithuania" "Luxembourg"
## [101] "Madagascar" "Malawi"
## [103] "Malaysia" "Maldives"
## [105] "Mali" "Malta"
## [107] "Mauritania" "Mauritius"
## [109] "Mexico" "Moldova"
## [111] "Monaco" "Mongolia"
## [113] "Montenegro" "Morocco"
## [115] "Mozambique" "MS Zaandam"
## [117] "Namibia" "Nepal"
## [119] "Netherlands" "New Zealand"
## [121] "Nicaragua" "Niger"
## [123] "Nigeria" "North Macedonia"
## [125] "Norway" "Oman"
## [127] "Pakistan" "Panama"
## [129] "Papua New Guinea" "Paraguay"
## [131] "Peru" "Philippines"
## [133] "Poland" "Portugal"
## [135] "Qatar" "Romania"
## [137] "Russia" "Rwanda"
## [139] "Saint Kitts and Nevis" "Saint Lucia"
## [141] "Saint Vincent and the Grenadines" "San Marino"
## [143] "Sao Tome and Principe" "Saudi Arabia"
## [145] "Senegal" "Serbia"
## [147] "Seychelles" "Sierra Leone"
## [149] "Singapore" "Slovakia"
## [151] "Slovenia" "Somalia"
## [153] "South Africa" "South Sudan"
## [155] "Spain" "Sri Lanka"
## [157] "Sudan" "Suriname"
## [159] "Sweden" "Switzerland"
## [161] "Syria" "Taiwan*"
## [163] "Tajikistan" "Tanzania"
## [165] "Thailand" "Timor-Leste"
## [167] "Togo" "Trinidad and Tobago"
## [169] "Tunisia" "Turkey"
## [171] "Uganda" "Ukraine"
## [173] "United Arab Emirates" "United Kingdom"
## [175] "Uruguay" "US"
## [177] "Uzbekistan" "Venezuela"
## [179] "Vietnam" "West Bank and Gaza"
## [181] "Western Sahara" "Yemen"
## [183] "Zambia" "Zimbabwe"
## [185] "Canada" "China"
## [187] "Australia"
library(tidyverse)
## -- Attaching packages ----------------------------------------------------------- tidyverse 1.3.0 --
## v ggplot2 3.3.2 v purrr 0.3.4
## v tibble 3.0.3 v dplyr 1.0.0
## v tidyr 1.1.0 v stringr 1.4.0
## v readr 1.3.1 v forcats 0.5.0
## -- Conflicts -------------------------------------------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(magrittr)
##
## Attaching package: 'magrittr'
## The following object is masked from 'package:purrr':
##
## set_names
## The following object is masked from 'package:tidyr':
##
## extract
In this report consider about the Bangladesh Corona Condition by all of the countries which have coronavirus.
Bangladesh_corona<-coronavirus%>%filter(country=="Bangladesh")
Extract recovered cases in the Bangladesh
recover_Bangladesh_corona<-Bangladesh_corona%>%filter(type=="recovered")
head(recover_Bangladesh_corona)
## date province country lat long type cases
## 1 2020-01-22 Bangladesh 23.685 90.3563 recovered 0
## 2 2020-01-23 Bangladesh 23.685 90.3563 recovered 0
## 3 2020-01-24 Bangladesh 23.685 90.3563 recovered 0
## 4 2020-01-25 Bangladesh 23.685 90.3563 recovered 0
## 5 2020-01-26 Bangladesh 23.685 90.3563 recovered 0
## 6 2020-01-27 Bangladesh 23.685 90.3563 recovered 0
This ggplot shows the Bangladesh daily COVID-19 recoveries.
ggplot(recover_Bangladesh_corona,aes(x=date,y=cases))+geom_line()+ggtitle("US:Daily Covid-19 recoveries")
Bangladesh is a densely-populated, low-lying, mainly riverine country located in South Asia with a coastline of 580 km (360 mi) on the northern littoral of the Bay of Bengal. The delta plain of the Ganges (Padma), Brahmaputra (Jamuna), and Meghna Rivers and their tributaries occupy 79 percent of the country.
library(ggplot2)
library(maptools)
## Loading required package: sp
## Checking rgeos availability: FALSE
## Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
## which has a restricted licence. It is disabled by default;
## to enable gpclib, type gpclibPermit()
library(tibble)
library(tidyverse)
library(ggrepel)
library(png)
library(grid)
library(sp)
data(wrld_simpl)
p <- ggplot() +
geom_polygon(
data = wrld_simpl,
aes(x = long, y = lat, group = group), fill = "gray", colour = "white"
) +
coord_cartesian(xlim = c(-180, 180), ylim = c(-90, 90)) +
scale_x_continuous(breaks = seq(-180, 180, 120)) +
scale_y_continuous(breaks = seq(-90, 90, 100))
## Regions defined for each Polygons
p +
geom_point(
data = Bangladesh_corona, aes(x = long, y = lat), color = "red", size
= 1
)
Bangladesh with tropical monsoon climate characterised by wide seasonal variations in rainfall, high temperatures, and high humidity. Regional climatic differences in this flat country are minor. Three seasons are generally recognised: a hot, muggy summer from March to June; a hot, humid and rainy monsoon season from June to November; and a warm-hot, dry winter from December to February. In general, maximum summer temperatures range between 38 and 41 centigrades.April is the hottest month in most parts of the country. January is the coolest month, when the average temperature for most of the country is 16-20 centigrades during the day and around 10 centigrades at night.
The COVID-19 pandemic in Bangladesh is part of the worldwide pandemic of coronavirus disease 2019 (COVID-19) caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2). The virus was confirmed to have spread to Bangladesh in March 2020. The first three known cases were reported on 8 March 2020 by the country's epidemiology institute, IEDCR. Since then, the pandemic has spread day by day over the whole nation and the number of affected people has been increasing.
In order to protect the population, the government declared "lockdown" throughout the nation from 23 March to 30 May and prepared some necessary steps to spread awareness to keep this syndrome away from them.How away the disease invasived rapidly.Bangladesh is the third most affected country in South Asia, after India and Pakistan., Bangladesh declared a 10-day shut down effective from 26 March to 4 April.[10] This was later extended to 30 May.[11].How ever Bangladesh under lockdown within the next few days with this coronavirus.
All the section are closed and people have been asked to practice social distancing and stay at home. Public transport would be limited and advice was given to avoid them.The government asked the Army to ensure social distancing.Some people have been arrested for allegedly spreading false information about the coronavirus pandemic.To treat all the patient in Bangladesh has 1,169 ICU beds, amounting to 0.72 beds per 100,000 citizens. Of these 432 beds are in government hospitals and 737 in private hospitals.There are only 550 ventilators in the country.And the government warm up to increase all the facilities for treatments.
head(Bangladesh_corona)
## date province country lat long type cases
## 1 2020-01-22 Bangladesh 23.685 90.3563 confirmed 0
## 2 2020-01-23 Bangladesh 23.685 90.3563 confirmed 0
## 3 2020-01-24 Bangladesh 23.685 90.3563 confirmed 0
## 4 2020-01-25 Bangladesh 23.685 90.3563 confirmed 0
## 5 2020-01-26 Bangladesh 23.685 90.3563 confirmed 0
## 6 2020-01-27 Bangladesh 23.685 90.3563 confirmed 0
summary(Bangladesh_corona)
## date province country lat
## Min. :2020-01-22 Length:336 Length:336 Min. :23.68
## 1st Qu.:2020-02-18 Class :character Class :character 1st Qu.:23.68
## Median :2020-03-17 Mode :character Mode :character Median :23.68
## Mean :2020-03-17 Mean :23.68
## 3rd Qu.:2020-04-14 3rd Qu.:23.68
## Max. :2020-05-12 Max. :23.68
## long type cases
## Min. :90.36 Length:336 Min. : 0.00
## 1st Qu.:90.36 Class :character 1st Qu.: 0.00
## Median :90.36 Mode :character Median : 0.00
## Mean :90.36 Mean : 59.69
## 3rd Qu.:90.36 3rd Qu.: 5.00
## Max. :90.36 Max. :1034.00
Description :- Daily summary of the coronavirus(CoVID-19)cases by provinse.
Usage:- Coronavirus
Format :- A data frame with 7 variables
Date :- Date in Year/Month/Date format
province :- Name of the province,for countries where data is provided split across multiple provinces.
country :- Name of the country.
lat :- Latitude of center of the geographic region,defined as either country or ,if available province.
type :- An indicator for the type of cases (confirmed,death,recovered)
cases :- Number of cases on given date.
Details :- The dataset contains the daily summary of COVIT-19 cases (confirmed,death and recovered) by state.
Source :- Johns Hopkins University center for system science and engineering(JHU CCSE) Coronavirus website.
Before modeling split the data into training and testing sets.Use this model to make predictions to check the out of sample accuracy of the model.Now randomly select 80 rows from the Bangladesh Corona data set from the original data set.
smp_size<-80
## set the seed to make your partition reproducible
set.seed(123)
train_ind<-sample(seq_len(nrow(Bangladesh_corona)),size=smp_size)
train<-Bangladesh_corona[train_ind, ]
dim(train)
## [1] 80 7
test<-Bangladesh_corona[-train_ind, ]
dim(test)
## [1] 256 7
head(train)
## date province country lat long type cases
## 179 2020-03-28 Bangladesh 23.685 90.3563 death 0
## 14 2020-02-04 Bangladesh 23.685 90.3563 confirmed 0
## 195 2020-04-13 Bangladesh 23.685 90.3563 death 5
## 306 2020-04-12 Bangladesh 23.685 90.3563 recovered 3
## 118 2020-01-27 Bangladesh 23.685 90.3563 death 0
## 299 2020-04-05 Bangladesh 23.685 90.3563 recovered 3
Bangladesh_corona_1<-train%>%
pivot_longer(c(4,5,7),names_to="Variable",values_to="value")
Bangladesh_corona_1
## # A tibble: 240 x 6
## date province country type Variable value
## <date> <chr> <chr> <chr> <chr> <dbl>
## 1 2020-03-28 "" Bangladesh death lat 23.7
## 2 2020-03-28 "" Bangladesh death long 90.4
## 3 2020-03-28 "" Bangladesh death cases 0
## 4 2020-02-04 "" Bangladesh confirmed lat 23.7
## 5 2020-02-04 "" Bangladesh confirmed long 90.4
## 6 2020-02-04 "" Bangladesh confirmed cases 0
## 7 2020-04-13 "" Bangladesh death lat 23.7
## 8 2020-04-13 "" Bangladesh death long 90.4
## 9 2020-04-13 "" Bangladesh death cases 5
## 10 2020-04-12 "" Bangladesh recovered lat 23.7
## # ... with 230 more rows
Histogram of the Bangladesh Coronavirus
ggplot(Bangladesh_corona_1,aes(x=date))+geom_histogram(colour="white")+facet_wrap(type~.,ncol=1)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Boxplot of the Bangladesh Coronavirus
Bangladesh_corona_1%>%
filter(is.na(type)==FALSE)%>%
ggplot(aes(y=value,X=type,fill=type))+geom_boxplot()
facet_wrap(variable~.,ncol=1,scale="free")
## <ggproto object: Class FacetWrap, Facet, gg>
## compute_layout: function
## draw_back: function
## draw_front: function
## draw_labels: function
## draw_panels: function
## finish_data: function
## init_scales: function
## map_data: function
## params: list
## setup_data: function
## setup_params: function
## shrink: TRUE
## train_scales: function
## vars: function
## super: <ggproto object: Class FacetWrap, Facet, gg>
This is the ggplot about Bangladesh Coronavirus represents confirmed,death and recovered.
Bangladesh<-coronavirus%>%filter(country=="Bangladesh")
head(Bangladesh_corona)
## date province country lat long type cases
## 1 2020-01-22 Bangladesh 23.685 90.3563 confirmed 0
## 2 2020-01-23 Bangladesh 23.685 90.3563 confirmed 0
## 3 2020-01-24 Bangladesh 23.685 90.3563 confirmed 0
## 4 2020-01-25 Bangladesh 23.685 90.3563 confirmed 0
## 5 2020-01-26 Bangladesh 23.685 90.3563 confirmed 0
## 6 2020-01-27 Bangladesh 23.685 90.3563 confirmed 0
ggplot(Bangladesh_corona,aes(x=date,y=cases,col=type))+geom_line()
By the consider about the histogram,boxplot and ggplot we can say Bangladesh Coronavirus situaion the confirmed cases are most larger than to the recovered and death.It shows that ggplot clearly.By considering all the data comparatively death amount is small than other two types.But with the time death amount increasing according to the plot.All the types are increase After the April month.Histogram shows nearly equal recover type amount largely.But it increase of a sudden.When the consider about the box plot we can get same idea by the histogram and ggplot aswel.
This histogram about the Recover Bangladesh CronaVirus data
ggplot(recover_Bangladesh_corona,aes(x=cases))+geom_histogram(colour="white")+facet_wrap(type~.,ncol=1,scales = "free")
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Now consider about the Bangladesh coronavirus condition with other two countries.First take India because it is the nearest main country with coronavirus and same continent.
India_corona<-coronavirus%>%filter(country=="India")
head(India_corona)
## date province country lat long type cases
## 1 2020-01-22 India 21 78 confirmed 0
## 2 2020-01-23 India 21 78 confirmed 0
## 3 2020-01-24 India 21 78 confirmed 0
## 4 2020-01-25 India 21 78 confirmed 0
## 5 2020-01-26 India 21 78 confirmed 0
## 6 2020-01-27 India 21 78 confirmed 0
recover_Bangladesh_corona<-coronavirus%>%
filter(country=="Bangladesh"&type=="recovered")
recover_India_corona<-coronavirus%>%
filter(country=="India"&type=="recovered")
Bangladesh_India<-data.frame(date=recover_Bangladesh_corona$date,
Bangladesh=recover_Bangladesh_corona$cases,
India=recover_India_corona$cases)
Bangladesh_India<-pivot_longer(Bangladesh_India,c(2,3),"country","value")
ggplot(Bangladesh_India,aes(x=date,y=value,colour=country))+
geom_line()
According to this plot India faced to very difficult situation greater than Bangladesh. Now take the china to compare with Bangladesh.As the coronavirus started country.
China_corona<-coronavirus%>%filter(country=="China")
head(China_corona)
## date province country lat long type cases
## 1 2020-01-22 Anhui China 31.8257 117.2264 confirmed 1
## 2 2020-01-23 Anhui China 31.8257 117.2264 confirmed 8
## 3 2020-01-24 Anhui China 31.8257 117.2264 confirmed 6
## 4 2020-01-25 Anhui China 31.8257 117.2264 confirmed 24
## 5 2020-01-26 Anhui China 31.8257 117.2264 confirmed 21
## 6 2020-01-27 Anhui China 31.8257 117.2264 confirmed 10
recover_Bangladesh_corona<-coronavirus%>%
filter(country=="Bangladesh"&type=="recovered")
recover_China_corona<-coronavirus%>%
filter(country=="China"&type=="recovered")
Bangladesh_China<-data.frame(date=recover_Bangladesh_corona$date,
Bangladesh=recover_Bangladesh_corona$cases,
China=recover_China_corona$cases)
Bangladesh_China<-pivot_longer(Bangladesh_China,c(2,3),"country","value")
ggplot(Bangladesh_China,aes(x=date,y=value,colour=country))+
geom_line()
According to this plot at the begining of the coronavirus China with heavy affect with coronavirus.But the time passing that condition change.However finally Bangladesh ahead from the China.China get through repulse the coronavirus more than Bangladesh.
In this report consider about the Bangladesh coronavirus condition by analysing dataset.For this analysis we use sample of the dataset and get histograms and boxplots for that sample to predict the conclutions of the country situation.When the coronavirus starting period Bangladesh does not face to that much corona virus calamity.When the time is passing Bangladesh also compliance to coronavirus.By consider about the other contry situations with Bangladesh It represent good position greater than India.But China face to coronavirus feaver good appearence greater than India and Bangladesh also.
*En.wikipedia.org.2020.COVID-19 Pandemic In Bangladesh.[online]Available at:https://en.wikipedia.org/wiki/COVID-19_pandemic_in_Bangladesh[Accessed 19 July 2020].
*En.wikipedia.org.2020.Geography of Bangladesh.[online]Available at:https://en.wikipedia.org/wiki/Geography_of_Bangladesh[Accessed 19 July 2020].