J'aide une amie à faire une heat map, j'ai fait une jolie fonction:
Code : Tout sélectionner
library(sp)
library(rgdal)
library(Linarius) # install_github("giby/Linarius)
data(Kenya)
plot(Geotermal.Area)
plot(Hells.NP,add=T,col="grey98")
#Super fonction de la mort qui tue
heat.points(Kenya$Asconc, coord ,loc=c(205000,9896000),offset=0.1,length=3000)
donc la s'affiche mes points en couleurs, avec une super bar d'échelle de couleur, j'en fait un png :
Code : Tout sélectionner
png(file="Tecla-HM.png",width = 18.4 , height = 18.4 ,units = "cm",pointsize=6,res=288)
plot(Geotermal.Area)
plot(Hells.NP,add=T,col="grey98")
#Super fonction de la mort qui tue
heat.points(Kenya$Asconc, coord ,loc=c(205000,9896000),offset=0.1,length=3000)
dev.off()
Ma bare reste blanche :(
Pourquoi? Suis-je Maudit? Dois-je voir un exorciste? Prendre des vacances?