AIM : Investigate number, intensity and duration of MHW events in coastal NZ, including Chatham, Stewart, Auckland and Campbell islands.
Document Note : The maps, plots and app within this document are interactive so make sure you give them a play like zooming in and out in the maps but also on the plots. Clicking on the legend allows to only select and display the time series needed.
MHW events are getting more numerous. Especially in Jan, Mar, May, Jul, Aug, Oct, Dec? Inceasing recently for all seasons, bump years 2000 only in Autumn, Winter and Spring.
MHW Events are getting more intense (in terms of cumulative intensity). Especially in Jan, Feb, Mar, Apr, Dec? The 3 regions the most affected recently are the Chatham, the West Coast of the South Island and Fiorldand. Mainly in Summer and Autumn.
MHW Events are getting more intense (in terms of max intensity). Especially in Jan, Mar, Dec? The West Coast of the South Island and Fiordland are the regions experiencing the most intense MHW events. Summer MHW more intense, but spring/Autumn not far.
MHW Events are getting longer. Especially in Jan, Feb, Mar, Apr, May, Jun, AUg, Nov, Dec? The Chatham Islands, the West Coast of the South Island and Fiordland, are experiencng longer events recently. Summer and Autumn.
Global trends: Positive Sen’s slope showing positive trend + significant for metrics Mean Cumulative Intensity, Mean Duration and Number of Events (p-value<0.05), not significant for Mean Maximum Intensity.
Data - Downloading and Preparing NOAA OISST Data By Robert W Schlegel and AJ Smit From https://robwschlegel.github.io/heatwaveR/articles/OISST_preparation.html
Event Detection - Uses heatwaveR:: (Schlegel and Smit 2018), translation of GitHub python functions from Eric C.J. Oliver (published in paper Holbrook et al. (2019) A global assessment of marine heatwaves and their drivers) https://robwschlegel.github.io/heatwaveR/articles/gridded_event_detection.html
We show here the Years of the most intense MHW events (in terms of cumulative intensity) in coastal NZ. All coastal pixels are used for the summarisy in part 2. The polygons represent the regional zones where information is summarised in part 3. Note the presence of the red (2016), grey (2017) and green (2018) colours showing the importance of recent events in coastal NZ since 1981.
#NZ_polys <- st_read('NZ_IslandsMainland_polys2.shp',crs=CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"),quiet=T)
NZ_polys <- st_read('14_Coastal_NZ_Biogeographic_Regions.shp',crs=CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"),quiet=T)
# MHW Coastal Summaries
#MHW_coastal <- read_csv('MHW_Events_NZ_Coastal.csv',col_types = cols()) %>% dplyr::filter(date_peak < "2021-01-01") #Removed year 21
MHW_coastal_regions <- read_csv('MHW_Events_NZ_Kermadec_Coastal_Biogeographic_Regions.csv',col_types = cols()) %>% dplyr::filter(date_peak < "2021-01-01") #Removed year 21 #read_csv('MHW_Events_NZ_Coastal_Biogeographic_Regions.csv',col_types = cols())
MHW_coastal_YearMax <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(lon,lat,year) %>%
summarise(max_intensity = max(intensity_cumulative)) %>%
dplyr::filter(max_intensity==max(max_intensity))
## `summarise()` has grouped output by 'lon', 'lat'. You can override using the `.groups` argument.
MHW_coastal_YearMax_sf <- st_as_sf(MHW_coastal_YearMax,coords = c('lon','lat'), crs=crs(NZ_polys))
## Map
pal <- c(brewer.pal(9,'Purples'),brewer.pal(9,'Blues'),brewer.pal(9,'Oranges'),brewer.pal(9,'Reds'),brewer.pal(3,'Greens'))
p_intensity <- ggplot() +
geom_sf(data=NZ_polys$geometry,fill=NA) +
geom_sf_text(data=NZ_polys,aes(label = Region),size=3, colour = "black",nudge_x = c(4,1,-2,-4,-3,3,-3,5,4,0,0,0,0,0),
nudge_y = c(0,-2,0,0,1,-1,-1,0,0,1,-1,1,0,-2)) +
#geom_sf(data=MHW_coastal_YearMax_sf,aes(size = scale(max_intensity))) +#Size of point by intensity
geom_sf(data=MHW_coastal_YearMax_sf,aes(col = year)) +#Colour of point by intensity
#scale_color_viridis(option = "magma",direction = -1,name = "Cumulative Intensity (DegC)")
scale_colour_gradientn(colours=pal) +
ggtitle('Year of Most Intense Coastal MHW events and coastal pixels included') +
borders('world2',xlim=c(163,185),ylim=c(-55,-28)) + xlim(c(163,185)) + ylim(c(-55,-28)) +
theme(panel.background = element_rect(fill = 'aliceblue'), panel.grid.major = element_blank(),legend.position = "bottom") +
annotation_scale(location = "br",pad_x = unit(0.05, "in"),pad_y = unit(0.05, "in"), width_hint = 0.2) +
annotation_north_arrow(location = "br", which_north = "true",
pad_x = unit(0.01, "in"), pad_y = unit(0.3, "in"),
style = north_arrow_fancy_orienteering) +
xlab('') + ylab('')
ggplotly(p_intensity)
Figure 1 - Year of Most Intense MHW events (in terms of cumulative intensity) around Coastal New Zealand. Note the red (2016), grey (2017) and green (2018) colours.
We show here the corresponding cumulative intensity of the strongest MHW recorded at these coastal pixels.
## Map
p_intensity <- ggplot() +
geom_sf(data=NZ_polys$geometry,fill=NA) +
geom_sf_text(data=NZ_polys,aes(label = Region),size=3, colour = "black",nudge_x = c(4,1,-2,-4,-3,3,-3,5,4,0,0,0,0,0),
nudge_y = c(0,-2,0,0,1,-1,-1,0,0,1,-1,1,0,-2)) +
#geom_sf(data=MHW_coastal_YearMax_sf,aes(size = scale(max_intensity))) +#Size of point by intensity
geom_sf(data=MHW_coastal_YearMax_sf,aes(col = max_intensity)) +#Colour of point by intensity
scale_color_viridis(option = "magma",direction = -1,name = "Cumulative Intensity (DegC.Days)") +
ggtitle('Most Intense Coastal MHW events and coastal pixels included') +
borders('world2',xlim=c(163,185),ylim=c(-55,-28)) + xlim(c(163,185)) + ylim(c(-55,-28)) +
theme(panel.background = element_rect(fill = 'aliceblue'), panel.grid.major = element_blank(),legend.position = "bottom") +
annotation_scale(location = "br",pad_x = unit(0.05, "in"),pad_y = unit(0.05, "in"), width_hint = 0.2) +
annotation_north_arrow(location = "br", which_north = "true",
pad_x = unit(0.01, "in"), pad_y = unit(0.3, "in"),
style = north_arrow_fancy_orienteering) +
xlab('') + ylab('')
ggplotly(p_intensity)
Figure 1 bis - Cumulative intensity of Most Intense MHW events around Coastal New Zealand.
What makes a MHW particularly destructive? Is it a short but very abrupt event (very high maximum intensity but short duration and small cumulative intensity) or a sustained but slightly mellower event (lower maximum intensity but longer duration and higher cumulative intensity)? Let’s just plot here the same 2 maps than previously but showing the maximum max intensity ever recorded in signel events as well as their date (year).
MHW_coastal_YearMax2 <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(lon,lat,year) %>%
summarise(max_intensity = max(intensity_max)) %>%
dplyr::filter(max_intensity==max(max_intensity))
## `summarise()` has grouped output by 'lon', 'lat'. You can override using the `.groups` argument.
MHW_coastal_YearMax2_sf <- st_as_sf(MHW_coastal_YearMax2,coords = c('lon','lat'), crs=crs(NZ_polys))
## Map
p_intensity <- ggplot() +
geom_sf(data=NZ_polys$geometry,fill=NA) +
geom_sf_text(data=NZ_polys,aes(label = Region),size=3, colour = "black",nudge_x = c(4,1,-2,-4,-3,3,-3,5,4,0,0,0,0,0),
nudge_y = c(0,-2,0,0,1,-1,-1,0,0,1,-1,1,0,-2)) +
#geom_sf(data=MHW_coastal_YearMax_sf,aes(size = scale(max_intensity))) +#Size of point by intensity
geom_sf(data=MHW_coastal_YearMax2_sf,aes(col = max_intensity)) +#Colour of point by intensity
scale_color_viridis(option = "magma",direction = -1,name = "Max Intensity (DegC)") +
ggtitle('Most Intense Coastal MHW events and coastal pixels included') +
borders('world2',xlim=c(163,185),ylim=c(-55,-28)) + xlim(c(163,185)) + ylim(c(-55,-28)) +
theme(panel.background = element_rect(fill = 'aliceblue'), panel.grid.major = element_blank(),legend.position = "bottom") +
annotation_scale(location = "br",pad_x = unit(0.05, "in"),pad_y = unit(0.05, "in"), width_hint = 0.2) +
annotation_north_arrow(location = "br", which_north = "true",
pad_x = unit(0.01, "in"), pad_y = unit(0.3, "in"),
style = north_arrow_fancy_orienteering) +
xlab('') + ylab('')
ggplotly(p_intensity)
Figure 1 bis - Maximum intensity of Most Intense MHW events around Coastal New Zealand.
And associated year
## Map
pal <- c(brewer.pal(9,'Purples'),brewer.pal(9,'Blues'),brewer.pal(9,'Oranges'),brewer.pal(9,'Reds'),brewer.pal(3,'Greens'))
p_intensity <- ggplot() +
geom_sf(data=NZ_polys$geometry,fill=NA) +
geom_sf_text(data=NZ_polys,aes(label = Region),size=3, colour = "black",nudge_x = c(4,1,-2,-4,-3,3,-3,5,4,0,0,0,0,0),
nudge_y = c(0,-2,0,0,1,-1,-1,0,0,1,-1,1,0,-2)) +
#geom_sf(data=MHW_coastal_YearMax_sf,aes(size = scale(max_intensity))) +#Size of point by intensity
geom_sf(data=MHW_coastal_YearMax2_sf,aes(col = year)) +#Colour of point by intensity
#scale_color_viridis(option = "magma",direction = -1,name = "Cumulative Intensity (DegC)")
scale_colour_gradientn(colours=pal) +
ggtitle('Year of Most Intense Coastal MHW events and coastal pixels included') +
borders('world2',xlim=c(163,185),ylim=c(-55,-28)) + xlim(c(163,185)) + ylim(c(-55,-28)) +
theme(panel.background = element_rect(fill = 'aliceblue'), panel.grid.major = element_blank(),legend.position = "bottom") +
annotation_scale(location = "br",pad_x = unit(0.05, "in"),pad_y = unit(0.05, "in"), width_hint = 0.2) +
annotation_north_arrow(location = "br", which_north = "true",
pad_x = unit(0.01, "in"), pad_y = unit(0.3, "in"),
style = north_arrow_fancy_orienteering) +
xlab('') + ylab('')
ggplotly(p_intensity)
Figure 1 bis - Year of Most Intense MHW events (in terms of max intensity) around Coastal New Zealand. Note the red (2016), grey (2017) and green (2018) colours.
n_events_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>% tally()
p <- ggplot(n_events_year,aes(year,n)) + geom_line() + geom_smooth(se=T) +
ggtitle('Number of MHW events in Coastal NZ per Year') + ylab("Number of events") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 2 - Number of MHW events in Coastal NZ per Year.
# Seasons - Dec/Jan/Feb: Summer, Mar/Apr/May: Autumn, Jun/Jul/Aug: Winter, Sep/Oct/Nov: Spring
n_events_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% tally()
p <- ggplot(n_events_season,aes(year,n)) + facet_wrap(vars(Season)) + geom_line() + geom_smooth(se=T) +
ggtitle('Number of MHW events in Coastal NZ per Season') + ylab("Number of events") + xlab('Years')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 3 - Number of MHW events in Coastal NZ per Season.
MHW events are getting more numerous. Especially in Jan, Mar, May, Jul, Aug, Oct, Dec? Inceasing recently for all seasons, bump years 2000 only in Autumn, Winter and Spring.
CumInt_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>%
summarise(meanCumInt = mean(intensity_cumulative))
p <- ggplot(CumInt_year,aes(year,meanCumInt)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Cumulative Intensity of MHW in Coastal NZ per Year') + ylab("Cumulative Intensity") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 4 - Mean of Cumulative Intensity of MHW in Coastal NZ per Year.
# Seasons - Dec/Jan/Feb: Summer, Mar/Apr/May: Autumn, Jun/Jul/Aug: Winter, Sep/Oct/Nov: Spring
CumInt_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% summarise(meanCumInt = mean(intensity_cumulative))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(CumInt_season,aes(year,meanCumInt)) + facet_wrap(vars(Season)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Cumulative Intensity of MHW events in Coastal NZ per Season') + ylab("Cumulative Intensity") + xlab('Years')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 5 - Mean of Cumulative Intensity of MHW events in Coastal NZ per Season.
MHW Events are getting more intense (in terms of cumulative intensity). Especially in Jan, Feb, Mar, Apr, Dec? Mainly in Summer and Autumn.
MaxInt_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>%
summarise(meanMaxInt = mean(intensity_max))
p <- ggplot(MaxInt_year,aes(year,meanMaxInt)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Max Intensity of MHW in Coastal NZ per Year') + ylab("Max Intensity") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 6 - Mean of Max Intensity of MHW in Coastal NZ per Year.
# Seasons - Dec/Jan/Feb: Summer, Mar/Apr/May: Autumn, Jun/Jul/Aug: Winter, Sep/Oct/Nov: Spring
MaxInt_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% summarise(MeanMaxInt = mean(intensity_max))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(MaxInt_season,aes(year,MeanMaxInt)) + facet_wrap(vars(Season)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Max Intensity of MHW events in Coastal NZ per Season') + ylab("Max Intensity") + xlab('Years')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 7 - Mean of Max Intensity of MHW in Coastal NZ per Season.
MHW Events are getting more intense (in terms of max intensity). Especially in Jan, Mar, Dec? Summer MHW more intense, but spring/Autumn not far.
meanduration_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>%
summarise(meanDuration = mean(duration))
p <- ggplot(meanduration_year,aes(year,meanDuration)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of the Duration of MHW events in Coastal NZ per Year') + ylab("Mean Duration (days)") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 8 - Mean of the Duration of MHW events in Coastal NZ per Year.
# Seasons - Dec/Jan/Feb: Summer, Mar/Apr/May: Autumn, Jun/Jul/Aug: Winter, Sep/Oct/Nov: Spring
Meanduration_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% summarise(meanDuration = mean(duration))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(Meanduration_season,aes(year,meanDuration)) + facet_wrap(vars(Season)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of the Duration of MHW events in Coastal NZ per Season') + ylab("Mean Duration (days)") + xlab('Years')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 9 - Mean of the Duration of MHW events in Coastal NZ per Season.
MHW Events are getting longer. Especially in Jan, Feb, Mar, Apr, May, Jun, AUg, Nov, Dec? Summer and Autumn.
n_events_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>% tally()
MHW_coastal_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year) %>%
summarize(meanCumInt = mean(intensity_cumulative),
meanMaxInt = mean(intensity_max), meanDuration = mean(duration))
MHW_coastal_year <- full_join(MHW_coastal_year,n_events_year) %>% rename(n_events = n) %>%
pivot_longer(-year,names_to='Metrics',values_to='values')
## Joining, by = "year"
MHW_coastal_trends_year <- MHW_coastal_year %>% group_by(Metrics) %>% dplyr::select(-year) %>% nest() %>%
mutate(ts_out = purrr::map(data, ~ts(.x$values,start=1982,end=2020,frequency = 1))) %>%
mutate(sens = purrr::map(ts_out, ~sens.slope(.x, conf.level = 0.95))) %>%
mutate(sens_slope = as.numeric(unlist(sens)[1]),sens_pvalue =as.numeric(unlist(sens)[3])) %>%
dplyr::select(Metrics,sens_slope,sens_pvalue)
kable(MHW_coastal_trends_year,caption = "Table 1 - Sens's Slope and p-value.") %>%
kable_classic()
| Metrics | sens_slope | sens_pvalue |
|---|---|---|
| meanCumInt | 0.2752588 | 0.0089771 |
| meanMaxInt | 0.0025463 | 0.4829170 |
| meanDuration | 0.1961797 | 0.0010006 |
| n_events | 17.3030303 | 0.0009179 |
Positive Sen’s slope showing positive trend + significant for metrics Mean Cumulative Intensity, Mean Duration and Number of Events (p-value<0.05), not significant for Mean Maximum Intensity.
n_events_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% tally()
MHW_coastal_season <- MHW_coastal_regions %>% mutate(Season = month(as.Date(floor_date(date_peak, unit="season"))),Season = recode_factor(Season, `12` = "Summer", `3` = "Autumn", `6` = "Winter", `9` = "Spring"),year = lubridate::year(date_peak)) %>%
group_by(year,Season) %>% summarise(sumCumInt = sum(intensity_cumulative),meanMaxInt = mean(intensity_max), meanDuration = mean(duration))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
MHW_coastal_season <- full_join(MHW_coastal_season,n_events_season) %>% rename(n_events = n) %>%
pivot_longer(-c(year,Season),names_to='Metrics',values_to='values')
## Joining, by = c("year", "Season")
MHW_coastal_trends_season <- MHW_coastal_season %>% group_by(Metrics,Season) %>% dplyr::select(-year) %>% nest() %>%
mutate(ts_out = purrr::map(data, ~ts(.x$values,start=1982,end=2020,frequency = 1))) %>%
mutate(sens = purrr::map(ts_out, ~sens.slope(.x, conf.level = 0.95))) %>%
mutate(sens_slope = as.numeric(unlist(sens)[1]),sens_pvalue =as.numeric(unlist(sens)[3])) %>%
dplyr::select(Metrics,sens_slope,sens_pvalue,Season) %>% group_by(Season)
kable(MHW_coastal_trends_season,caption = "Table 2 - Sens's Slope and p-value per season.") %>%
kable_classic()
| Metrics | sens_slope | sens_pvalue | Season |
|---|---|---|---|
| sumCumInt | 11.5361500 | 0.2406024 | Spring |
| meanMaxInt | 0.0019798 | 0.6198887 | Spring |
| meanDuration | 0.0841346 | 0.0591081 | Spring |
| n_events | 0.9629630 | 0.2309058 | Spring |
| sumCumInt | 63.1958500 | 0.1076160 | Summer |
| meanMaxInt | 0.0072140 | 0.0836340 | Summer |
| meanDuration | 0.0717238 | 0.1304780 | Summer |
| n_events | 2.2727273 | 0.1954411 | Summer |
| sumCumInt | 41.0442214 | 0.0177240 | Winter |
| meanMaxInt | 0.0010748 | 0.6808131 | Winter |
| meanDuration | 0.1186051 | 0.0528943 | Winter |
| n_events | 2.6111111 | 0.0171276 | Winter |
| sumCumInt | 57.4135000 | 0.0733155 | Autumn |
| meanMaxInt | 0.0000000 | 0.9806924 | Autumn |
| meanDuration | 0.1171110 | 0.0374091 | Autumn |
| n_events | 2.5652174 | 0.1303091 | Autumn |
Let’s have a look now at how the previous metrics differ regionally.
CumInt_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year,Region) %>%
summarise(meanCumInt = mean(intensity_cumulative))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(CumInt_year,aes(year,meanCumInt,col=Region)) + facet_wrap(vars(Region)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Cumulative Intensity of MHW in Coastal NZ per Year') + ylab("Cumulative Intensity") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 10 - Mean of Cumulative Intensity of MHW in Coastal NZ per Year.
The 4 regions the most affected recently are the Kermadec, Chatham, the West Coast of the South Island and Fiordland.
MeanInt_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year,Region) %>%
summarise(MeanInt = mean(intensity_max))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(MeanInt_year,aes(year,MeanInt,col=Region)) + facet_wrap(vars(Region)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of Max Intensity of MHW events in Coastal NZ per Year') + ylab("Max Intensity") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 11 - Mean of Max Intensity of MHW events in Coastal NZ per Year.
The West Coast of the South Island and Fiordland are the regions experiencing recently the most intense MHW events.
meanduration_year <- MHW_coastal_regions %>% mutate(year = lubridate::year(date_peak)) %>% group_by(year,Region) %>%
summarise(meanDuration = mean(duration))
## `summarise()` has grouped output by 'year'. You can override using the `.groups` argument.
p <- ggplot(meanduration_year,aes(year,meanDuration,col=Region)) + facet_wrap(vars(Region)) + geom_line() + geom_smooth(se=T) +
ggtitle('Mean of the Duration of MHW events in Coastal NZ per Year') + ylab("Mean Duration (days)") + xlab('Year')
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
Figure 12 - Mean of the Duration of MHW events in Coastal NZ per Year.
The Kermadec, Chatham Islands, the West Coast of the South Island and Fiordland are experiencng longer events recently.