Skip to content

Commit 434b35b

Browse files
committed
colors homogeneization
1 parent fd4f3cf commit 434b35b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fucico_map.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ northarrow <- function(loc,size,bearing=0,cols,cex=1,...) {
6262

6363
#map summarizing the resistant and not resistant populations by department
6464
temp<-datafuspop
65-
colovec<-c(brewer.pal(9,"Blues")[6],brewer.pal(9,"Reds")[6])
65+
#colovec<-c(brewer.pal(9,"Blues")[6],brewer.pal(9,"Reds")[6])
66+
colovec<-c("black","indianred1")
6667
#first we list the indices of the sampled department
6768
ind_list<-which(departe@data$INSEE_DEP %in%
6869
colnames(table(temp$carbend_R,temp$departement)))
@@ -91,7 +92,7 @@ draw.pie(x=coorddep$longitude,y=coorddep$latitude,
9192
col=colovec,lty=0,
9293
radius=(sqrt(coorddep$nb_fields)*22000),
9394
labels=NA)
94-
text(x=coorddep$longitude,y=coorddep$latitude,col="black",font=2,
95+
text(x=coorddep$longitude,y=coorddep$latitude,col="white",font=2,
9596
labels=as.character(coorddep$nb_fields),cex=1.3)
9697
scalebar(c(191260,6060000),300000,"km",division.cex=1)
9798
par(op)

fusico_bioassay_pop.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ write.table(result_pop, file="output/results_fusicoPOP.txt",
3636
##############################################################################/
3737

3838
op<-par(mar=c(6,7,2,1))
39-
colov<-c(grey(0),"indianred1")
39+
colov<-c("black","indianred1")
4040
plot(temp.m1,xlim=c(0,200),lwd=1.7,col=colov[c(1,1,1,1,2,1,1,1)],
4141
bty="n",axes=FALSE,ann=FALSE,legend=FALSE)
4242
legend(5,133,col=colov[c(1,1,1,1,2,1,1,1)],

0 commit comments

Comments
 (0)