library(tidyverse)library(tidytuesdayR)library(tidyplots)library(janitor)library(ggeasy)library(here)library(RColorBrewer)# read the data from that year/weekchosen_year <-2026chosen_week <-13df <- tidytuesdayR::tt_load(2026, 13)# print datasetprint(df)temp <- df[[1]]options(scipen =999)
The data for this plot comes from a 2026 TidyTuesday challenge. The Week 13 data that year was about ocean temperature in Nova Scotia.
shallow_deep_complete %>%ggplot(aes(x = year, y = month, fill = monthly_mean)) +geom_tile() +facet_wrap(~depth) +theme_minimal(base_family ="Lato") +scale_fill_distiller(palette ="Blues", na.value ="darkgrey",name ="Average \nTemperature") +labs(y ="Month", x ="Year", title ="Ocean Temperature by Depth in Nova Scotia", caption ="TidyTuesday 2026 Week 13 | Data from Nova Scotia Open Data Portal")
tidyplot
Code
blues <-brewer.pal(9, "Blues")shallow_deep_complete %>%tidyplot(x = year, y = month, fill = monthly_mean) %>%add_heatmap() %>%split_plot(by = depth) %>%adjust_size(width =55, height =75) %>%adjust_font(fontsize =12, family ="Lato") %>%adjust_title("Ocean Temperature by Depth in Nova Scotia", fontsize =14) %>%adjust_colors(new_colors =rev(blues)) %>%adjust_caption("TidyTuesday 2026 Week 13 | Data from Nova Scotia Open Data Portal") %>%adjust_x_axis_title("Year") %>%adjust_y_axis_title("Month") %>%adjust_legend_title("Average \ntemperature") %>%save_plot(here::here("charts26", "2026-04-11_physical", "tidyfeatured.png"))