library(tibble)
library(dplyr)
library(ggplot2)
library(scales)
library(colorspace)
library(sf)
library(ggthemes)
set.seed(416)
d <- tibble(x = rep(c("A1", "A2", "A3"), 4),
y = rep(c("B1", "B2", "B3", "B4"), c(3, 3, 3, 3)),
v = sort(runif(12, 65, 68)))
d_plt1 <- ggplot(d, aes(x = x, y = y, fill = v)) +
geom_tile() +
scale_fill_continuous_divergingx(palette = "Zissou 1", mid=66.5) +
xlab("") + ylab("") +
ggtitle("No uncertainty shown") +
theme_minimal() +
theme(legend.position = "none",
axis.text = element_text(size = 20),
title = element_text(size=20))
d_plt1 + geom_text(aes(x = x, y = y, label = number(v, accuracy = 0.1)), size=8)