Question: I am trying to plot a heatmap of a country with some points that are probabilities of occurrence of a event.
What I did up to now is next:

```
library(raster)
library(ggplot2)
Uruguay  <- getData("GADM",country="Uruguay",level=0)
ggplot(Uruguay,aes(x=long,y=lat,group=group)) + 
  ggplot2::lims(x = c(-60, -50), y = c(-35, -30))+
  geom_polygon(aes(x = long, y = lat, group = group, fill=id),color="grey30")+
  coord_map(xlim=c(-1,1)+bbox(Uruguay)["x",],ylim=c(-1,1)+bbox(Uruguay)["y",])+
  scale_fill_discrete(guide="none")+
  theme_bw()+theme(panel.grid=element_blank())

```

[![country border](https://i.stack.imgur.com/FPg3c.png)](https://i.stack.imgur.com/FPg3c.png)

my data to produce the heatmap is

```
prob <- c(10,20,90,40)
lat <- c(-30.52,-32.04,-33.16,-34.28)
long <- c(-57.40,-55.45,-56.35,-56.40)
data <- data.frame(prob, lat, long)

```

I think that using `ggplot2::stat_density2d` and `ggplot2::scale_fill_gradientn` is the way to go but I don't know how to implement it. I want to produce a heatmap like that

[![enter image description here](https://i.stack.imgur.com/01OJG.png)](https://i.stack.imgur.com/01OJG.png)

Any help is Welcome.
Thanks in advance.

Answer: 
I was able to correct my issue by upgrading Sql Server 2008 r2 to SP3 and then I applied this patch: <https://support.microsoft.com/en-us/topic/description-of-the-security-update-for-sql-server-2008-r2-sp3-gdr-january-6-2018-f8290bc2-5abe-934c-4672-c454db0b73f6>
I had the same error when connecting from Windows Server 2012.
I resolved by changing the TLS and SSL settings using the IIS Crypto executable. Specifically, I disabled Server Protocols SSL 3.0 and TLS 1.0. I also disabled Client Protocol SSL 3.0 (I believe this is what did the trick)
![Screenshot - IIS Crypto Settings](https://i.stack.imgur.com/Y3Ko4.png)