• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision34cefd3fc5b21875813e65fa965a2ca508132ff7 (tree)
l'heure2020-09-21 20:51:55
AuteurLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Message de Log

Minor improvements in the plots and removal of one level from the legend.

Change Summary

Modification

diff -r 7752ba6b97e8 -r 34cefd3fc5b2 R-codes/process_shares.R
--- a/R-codes/process_shares.R Sun Sep 20 00:12:16 2020 +0200
+++ b/R-codes/process_shares.R Mon Sep 21 13:51:55 2020 +0200
@@ -272,7 +272,7 @@
272272
273273 eu27_temp2 <- eu27_temp %>%
274274 select(reporterlabel, year) %>%
275- mutate(new_rank=-10)
275+ mutate(new_rank=-20)
276276
277277
278278
@@ -305,7 +305,8 @@
305305 mutate(new_rank2=case_when(new_rank==1~"EU27 is the first partner",
306306 new_rank==2~"EU27 is the second partner",
307307 new_rank==3~"EU27 is the third partner",
308- new_rank==-10~"Other")) %>%
308+ new_rank==-10~"Other",
309+ new_rank==-20~"extra")) %>%
309310
310311 mutate(new_rank2=if_else(is.na(new_rank2), "Other", new_rank2))
311312
@@ -322,7 +323,8 @@
322323
323324 my_pal <- viridis(4)[1:3]
324325
325-my_pal <- c(my_pal,"#a9a9a9" )
326+my_pal <- c(my_pal, "orange","#a9a9a9" )
327+
326328
327329
328330 for (my_year in sel_years2) {
@@ -368,7 +370,10 @@
368370 legend.title = element_text(vjust=1,lineheight=1, size=14,
369371 face="bold" ),
370372 plot.caption = element_text(size=14) )+
371- scale_fill_manual(NULL,values = my_pal, na.translate=F, drop=F)+
373+ scale_fill_manual(NULL,breaks=c("EU27 is the first partner",
374+ "EU27 is the second partner",
375+ "EU27 is the third partner", "Other") ,
376+ values = my_pal, na.translate=F, drop=F)+
372377 theme(plot.title = element_text(hjust = 0.5))+
373378 coord_sf(crs = "+proj=eqearth +wktext")
374379