File:Covid-19 symptoms in finland 1.svg
Original file (SVG file, nominally 720 × 1,260 pixels, file size: 221 KB)
Captions
Summary
[edit]DescriptionCovid-19 symptoms in finland 1.svg |
English: Covid-19 symptoms in Finland, cumulative to 19.6.2021 |
Date | |
Source | Own work |
Author | Merikanto |
SVG development InfoField |
Soucce od data_ THL open data 19.6.2021
Rajapinnan osoite: https://sampo.thl.fi/pivot/prod/fi/epirapo/omaolosymp/fact_epirapo_omaolosymp.json
Aineiston aihealue: epirapo
Aineiston nimi: omaolosymp
- Incidence of symptoms of Covid-19 by province, Finland
- reports of symptoms per 100 000 pop.
- all but not Ahvenanmaa
- "R" script
-
- 20.6.2021 0000.0001
-
library(geofi)
library(ggplot2)
library(dplyr)
library(rjstat)
library(stringr)
library(tidyr)
library(svglite)
library(sf)
library(viridis)
vuosi=2021
viikko=15
widthi=8
heighti=14
tulosfilee1="Covid-19_symptoms_in_finland_1.svg"
sahopivaki<-c(29789,
128756,
194316,
100226,
1667203,
41060,
73061,
171364,
77689,
252676,
166623,
117350,
61172,
535044,
165569,
409418,
245602,
211215,
218624,
169684,
481478
)
print (length(sahopivaki))
- stop(-1)
baseurl1<-"https://sampo.thl.fi/pivot/prod/fi/epirapo/omaolosymp/fact_epirapo_omaolosymp.json"
request1<-"?column=hcdmunicipality2020-445222&filter=measure-460489"
url1 <- paste0(baseurl1, request1)
cube1 <- fromJSONstat(url1, naming = "label", use_factors = F, silent = T)
res1 <- cube11
head(res1, 30)
shps00<-res1[,1]
tapaukset00<-res1[,2]
- shps00
shps1<-shps00[1:21]
tapaukset<-tapaukset00[1:21]
shps1
tapaukset
thldata1<-data.frame(shps1,tapaukset)
names(thldata1)<-c("sairaanhoitop_name_fi","tapaukset")
thldata1
d1 <- get_municipalities(year = 2020)
- shpt1 <- d1 %>% group_by(sairaanhoitop_name_fi) %>% count(maakunta_code)
- shpt1 <- d1 %>% group_by(sairaanhoitop_name_fi) %>% count()
shpt1 <- d1 %>% group_by(sairaanhoitop_name_fi) %>% count()
shpt1
- stop(-1)
totaali <- merge(shpt1, thldata1, by="sairaanhoitop_name_fi")
- totaali <- merge(totaali00, savaki1, by="sairaanhoitop_name_fi")
- totaali
totaali$vaesto <- sahopivaki
totaali
- stop(-1)
tapauksia1<-as.double(totaali$tapaukset)
vaesto1<-as.double(totaali$vaesto)
ilmaantuvuus<-tapauksia1*0.0
ilmaantuvuus0<-(100000*tapauksia1)/vaesto1
ilmaantuvuus=round(ilmaantuvuus0, digits = 0)
print("RAKO")
- print(tapauksia1)
- print(vaesto1)
- print(ilmaantuvuus)
- stop(-1)
print (head(totaali, 40))
len1=length(tapauksia1)
totaali$ilmaantuvuus <- ilmaantuvuus
totaali
- stop(-1)
daata1=totaali
my_breaks = c(100,2000,5000,10000,20000,50000, 100000,200000,50000, 100000)
otsikko="Koronaoireiden ilmaantuvuus 19.6.2021 mennessa."
alaotsikko="Oire-ilmoituksia 100000 asukasta kohden."
footeri="Muut paitsi Ahvenanmaa"
p2 <- ggplot(daata1, aes(fill = as.integer(ilmaantuvuus), color=as.integer(ilmaantuvuus) ) ) +
- geom_sf(colour = alpha("white", 1/3)) +
geom_sf()+
geom_sf_text(aes(label = tapaukset),
size = 7,
face = "bold",
color = "black") +
theme(legend.position = "none")+
# labs(subtitle = "Data")+
## ggtitle(otsikko) +
labs(title = otsikko,
subtitle = alaotsikko,
caption =footeri)+
theme(plot.title = element_text(size = 20, face = "bold")) +
theme(plot.subtitle = element_text(size = 16, face = "bold")) +
theme(plot.caption = element_text(size = 16, face = "bold")) +
theme(axis.text=element_text(size=15),
axis.title=element_text(size=15,face="bold")) +
# theme(legend.key.size = unit(2, 'cm')) +
xlab("Pituusaste")+
ylab("Leveysaste") +
scale_fill_viridis_c()
## scale_fill_viridis_c(
- breaks = my_breaks, labels = my_breaks, option = "viridis",
## trans = scales::pseudo_log_trans(sigma = 0.001)
## )
svg(filename=tulosfilee1, width=widthi, height=heighti, pointsize=12)
p2
dev.off()
Licensing
[edit]- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 07:41, 20 June 2021 | 720 × 1,260 (221 KB) | Merikanto (talk | contribs) | Update: incidence of Covid-19 symptom reports by region | |
14:27, 19 June 2021 | 720 × 1,260 (198 KB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on fi.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 576pt |
---|---|
Height | 1008pt |