-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Adding breaks = seq(-1, 20, 1) fixes the hole.
library(data.table)
library(ggplot2)
library(metR)
obs <- fread("https://raw.githubusercontent.com/paocorrales/t-fall/main/acorn_sat_v2.5.0_daily_tmax/t_fall.csv")
aus <- rnaturalearth::ne_states(country = "Australia", returnclass = "sf")
obs |>
ggplot(aes(longitude, latitude)) +
geom_contour_fill(aes(z = mean_front), kriging = 150, clip = aus) +
geom_point(aes(fill = mean_front), shape = 21) +
scale_color_viridis_c(guide = guide_colorbar(barwidth = 0.5,
barheigh = 15), direction = -1) +
scale_fill_viridis_c(guide = guide_colorbar(barwidth = 0.5,
barheigh = 15), direction = -1) +
geom_sf(data = aus, inherit.aes = FALSE, fill = NA) +
coord_sf(ylim = c(-45, -8)) +
labs(x = NULL, y = NULL, title = "Mean annual occurrence of falls in daily maximum \ntemperature of at least 10 K",
fill = NULL) +
theme_minimal()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels