Introduction

Behaviour mediates an organism’s complex interactions with both its biotic and abiotic environment. Spatial and temporal variation in the environment can affect various aspects of behaviour, such as predation and competition, which in turn can alter species interactions (Anholt 1997). Changes in behaviour therefore have the potential to shape ecological communities (Delarue et al. 2015). As a result, behaviour plays a pivotal role in how individuals can adjust to rapid environmental change (Wong and Candolin 2015; Nagelkerken and Munday 2016). For example, in marine systems, reef degradation and coral loss can influence reef fish recruitment and settlement (Dixson et al 2014), predator avoidance and boldness (Boström-Einarsson et al. 2018), aggression (Keith et al. 2018) and foraging (Nash et al. 2012). The capacity for a population to acclimate and/or adapt behaviourally to severe environmental change can be determined by factors such as if and how behaviour is transmitted between individuals (Keith and Bull 2017), geographic variation in biotic interactions (Early and Keith 2018) and the likelihood that initial acclimation contributes to evolutionary or ecological traps (Schlaepfer et al. 2002). Traps can occur when cues become unreliable under new environmental conditions, leading to maladaptive behaviour and reduced fitness (Schlaepfer et al. 2002). Individuals within a population do not always respond in the same way and can feedback to generate frequencies of alternative strategies within a population (Dall et al. 2004). Individual behaviour can, therefore, scale up to influence population dynamics, with broader community and ecosystem-level consequences (Wong and Candolin 2015). To understand any potential mechanisms or limitations on adaptation, there is a need to understand the role of individual variation and associated trade-offs in responses to environmental change.

Behavioural responses to environmental change can be measured at three levels: between population, between individuals within populations and within individuals. Population-level behavioural responses to environmental change have been well documented and reviewed (Tuomainen and Candolin 2011; Wong and Candolin 2015). Recent research has focused on how individual differences in behaviour affect how organisms respond to change (Mathot et al. 2012; Niemelä and Dingemanse 2018). Behavioural plasticity involves immediate changes in behaviour by individuals in response to the environment (Nussey et al. 2007). Plastic behaviours could allow individuals to buffer the effects of environmental change. For example, butterflyfishes can show flexibility in foraging behaviour following a decline in resource availability (Zambre and Arthur 2018). Personality refers to repeated correlated suites of behaviours that result in consistent responses by an individual across different behavioural contexts, such as mating or foraging, and across environmental gradients (Sih et al. 2004; Bell et al. 2009). When payoffs are based on the behavioural history of individuals, and the frequency with which different traits and strategies are expressed, these can be shaped over time through natural selection (Dall et al. 2004). Consistent behaviours across multiple contexts are used to indicate the presence of a personality (Hayes and Jenkins 1997; Bell et al. 2009). This consistency can be measured as behavioural repeatability: the proportion of variation across the population that can be attributed to differences between individuals (Lessells and Boag 1987). However, because repeatability is a statistic of the population, this measure cannot reveal the extent to which individuals vary in their consistency (Sih et al. 2004). It is therefore also important to account for the magnitude of individual variation around the mean population level (Dochtermann and Royauté 2019). Considering behaviour on an individual level can, therefore, reveal variation that is not apparent in population mean-level responses (Barbasch and Buston 2018; Gunn et al. 2021).

Evidence suggests that differences in behaviour within and between individuals can constrain the available strategies for coping with environmental change (Koolhaas et al. 1999). For example, less aggressive, but more exploratory individuals could be better able to cope with low resource availability by investing less in territory defence, which is costly where the resource reward is low (Righton et al. 1998). Instead, individuals invest more in exploratory foraging to locate increasingly sparse food resources (Chandler et al. 2016). Exploratory behaviours might be beneficial when individuals experience nutritional deficit, whereas aggressive behaviours are beneficial where resource availability is intermediate (Wyman and Hotaling 1988). Empirical evidence supports this idea, such that resource availability has been identified as a determinant of territoriality across various taxa. Specifically, territoriality is lower, and territory sizes larger, where resource availability is lower (Justino et al. 2012; Mazzamuto et al. 2020). Individuals that persist in changed environments may do so because they show a high degree of behavioural plasticity, i.e. have shifted their levels of aggression and exploration, and/or because the population of persisting individuals show specific, consistent variation in behaviour, i.e. specific personality types (Kralj-Fišer and Schneider 2012). To reveal how differences in behaviour within and between individuals can affect responses to environmental change and how that alters the frequency of different behaviours within a population through plasticity or selection, or a combination of both (Dingemanse et al. 2010), we must move beyond exploring behaviours in isolation and consider explicitly how multiple behaviours are correlated, and thus potentially trade-off against one another, in different contexts (Dall et al. 2004; Sih et al. 2004).

Butterflyfishes are an excellent model system to understand the impact of resource levels on behaviour at both the population and individual level. Global declines in live coral cover directly translate to a decline in resource availability for butterflyfish species. Their diet and, as a result, their abundance, body condition and behaviour, are subsequently influenced directly by the availability and quality of live coral (Graham et al. 2011). Butterflyfish territories have been shown to expand or break down when coral cover is low (Tricas 1989), especially in specialist obligate corallivores (Pratchett et al. 2014). The underlying mechanism appears to be linked to foraging strategies; reduced food resources lead to a nutritional deficit, so individuals must travel further to locate food and territorial boundaries break down (Zambre and Arthur 2018). The same mechanisms are also linked to reduced aggression (Berumen and Pratchett 2006; Keith et al. 2018) and changes in social behaviour (Thompson et al. 2019). As behaviour can influence the survival of individuals (Moiron et al. 2020), understanding variation in behavioural responses between butterflyfish individuals and identifying the drivers of these responses could have important implications for their persistence.

We test the extent to which the frequency of butterflyfish behaviours, and the variation in these behaviours across individuals, is influenced by resource levels (i.e. coral cover), using existing variation in coral cover and an obligate corallivore (Chaetodon lunulatus). Specifically, using population and individual level approaches, we (1) test whether territory size is influenced by resource availability such that territories with higher resource availability are smaller; (2) test whether individuals at reefs with high resource availability are more likely to exhibit aggressive behaviours, whilst those at reefs with low resource availability are more likely to exhibit exploratory behaviours; and (3) calculate both behavioural repeatability estimates and estimates of individual variability around the population mean to determine variation in behaviour between individuals within sites. If behaviours are highly repeatable, then any differences in behaviour between sites are likely a consequence of selection on fixed behavioural types.

Materials and methods

Study species and field sites

We collected field data using SCUBA between the 15th June and the 7th August 2019. Pilot data from abundance surveys were used to identify a species with strong pair bonding and territory defence behaviour. The most abundant obligate corallivore fitting this criterion was the oval butterflyfish, Chaetodon lunulatus. Yabuta and Berumen (2014) characterise C. lunulatus as monogamous and territorial with a strong pair bond, allowing us to observe the same breeding pair repeatedly in situ, by returning to the same territory on multiple occasions. It was not possible to record data blind because our study involved focal animals in the field.

The Wakatobi Marine National Park (WMNP) is located within the province of Southeast Sulawesi, Indonesia (5°41′S 124°0′E), within the coral triangle. Based on hard coral cover (resource availability), we selected two permanent monitoring sites around Hoga Island: Pak Kasims (PK) and Sampela (SAM) (Fig. S1). The high resource site, PK, was characterised by hard coral cover of 40–50%, with abundant soft coral (Clifton et al. 2010). In contrast, the low resource site, SAM, consisted of a gently sloping reef with coral cover of 10–20% and various rubble slips (Powell et al. 2015). The sites are similar in terms of wave exposure, reef aspect and depth, with all work conducted between 3 and 10 m across both sites.

Survey methods

Coral cover

We used a long-term reef monitoring programme to obtain coral cover data for 2019. Using permanent transect locations, three replicate 50 m transects were conducted per reef zone (flat, crest and slope) at each of the two sites and benthic composition recorded every 25 cm along each transects. We extracted the percentage of hard coral cover from each transect for analysis.

Territory mapping

We collected intensive behavioural data for ten C. lunulatus pairs at each of the two study sites. We mapped the territories for five of these pairs at each of the two sites following the methods in Berumen and Pratchett (2006). We observed a 2-min acclimation period to ensure the behaviour of the focal pair was not influenced by the presence of observers. We then followed the focal pair from a minimum distance of 2 m for 15 min. Visual markers (flagging tape attached to fishing weights) were placed at the pair’s location every minute. This observation time was based on pilot studies by Berumen and Pratchett (2006) that determined 15-min observation periods were optimal to accurately estimate C. lunulatus territory size. When pairs separated, we followed a single individual for the remainder of the observation period. Following the observation, two 30 × 30 m transects were laid perpendicular to one another outside of the points to provide X, Y axes. We recorded the marker locations as Cartesian coordinates from the transect origin.

Density

We conducted C. lunulatus density surveys through an underwater visual census (UVC) using a 50 × 5 m belt transect, which was laid out during counts. We used 10 replicate transects at each of three reef zones (flat, crest and slope) across the two sites, equating to 30 transects and an area of 7,500 m2 per site. As previous research indicated that territoriality in C. lunulatus could be influenced by a dominant competitor, we also recorded the density of C. baronessa along the transects (Berumen and Pratchett 2006).

Behavioural observations

We recorded 10-min behavioural observations for 10 pairs at each of the two sites, repeating our observations of each pair five times, resulting in a total of 100 behavioural observations. To keep the time between observations as consistent as possible, we observed individuals at both sites on each survey day, and all individuals were surveyed approximately every 5–7 days. The location of each territory was marked with a weight and flagging tape. Before placing the flagging tape, we observed the chosen breeding pair for approximately 5 min. The flagging tape was then placed within the approximate centre of the territory. Observations were recorded on a waterproof Nikon Coolpix camera from a minimum distance of 2 m. As with the territory mapping, we observed a 2-min acclimation period before we began recording behaviour. We also used this acclimation period to observe the pair and ensure that we were following the correct breeding pair, and not a pair from a neighbouring territory. Behaviours were then recorded from video analyses. We selected one individual from each breeding pair as a focal individual and used a continuous sampling method to record the length of time spent exhibiting each behavioural trait. We also identified any species the focal pair interacted with during video analyses. Butterflyfish show minimal sexual dimorphism (Yabuta 2008), so we were unable to discern between the two individuals within pairs when selecting the focal individual for each behavioural observation. Nonetheless, for C. lunulatus, monogamous bonds are long term (Reese 1975), and pairs have been shown to move throughout the feeding territory in coordination, with both individuals displaying equal levels of aggression (Nowicki et al. 2018). We therefore assumed behaviour to be synonymous between individuals making up a breeding pair.

We assigned observed behaviours to four behavioural categories (aggression, sociability, exploration and feeding), each consisting of one or more discrete behaviours (Table 1). Aggression was defined as an intra- or interspecific agonistic interaction initiated by the focal individual. Sociability was defined as the response to the presence of a conspecific (Réale et al. 2007), specifically the amount of time the focal individual spent within 2 m of the breeding partner (Table 1). Exploration captured two swimming traits, previously defined by Zambre and Arthur (2018) for butterflyfish: searching for food, defined as when individuals swim slowly, angled towards the benthos between patches, and all other swimming movements, here labelled as travelling. Travelling consisted of faster, streamlined swimming (Zambre and Arthur 2018). Feeding was defined as when individuals were taking bites out of live coral (Réale et al. 2007). Aggression, sociability and exploration are three commonly used behavioural categories, all of which have been shown to be repeatable to various extents (Bell et al. 2009; Table 1). We assigned the two discrete foraging behaviours (searching and feeding) into separate categories (exploration and feeding respectively), so that the time spent looking for food, and the time spent feeding, could be quantified separately. Additional behaviours, specifically the use of cleaning stations and resting, were also recorded. However, as these behaviours were observed rarely (< 0.05% of time across all observations) and were not the focal behaviours for this study, they have been excluded from analyses.

Table 1 Behaviours recorded during behavioural observations and included in statistical analyses

Statistical analyses

All our analyses were conducted using R v3.5.1 (R Core Team 2019). To analyse territory size, we plotted the Cartesian coordinates and calculated the minimum convex polygon to establish the area of each territory. We compared differences in territory size across the two sites using a one-way ANOVA.

Population level

For the population level analyses, we calculated the mean time spent on each behavioural category from the five observations for each breeding pair. We ran a multivariate analysis of variance (MANOVA), with time spent on each behavioural category (aggression, sociability, exploration and feeding) as the response variables, with site as the predictor variable. We then ran one-way ANOVAs with a Bonferroni correction for multiple comparisons, comparing time spent on each behavioural category separately, to identify which categories were different between the two sites. Based on the output from these tests, we also analysed the amount of time spent on searching, travelling and feeding using ANOVAs to compare differences between behaviours both within and across the two sites. Due to the small sample size in our study, we also bootstrapped the raw behavioural data and plotted the distributions of the 1000 bootstrap estimates and used non-overlapping confidence intervals to identify significant differences in behaviour between the two sites.

We compared C. lunulatus and C. baronessa densities across the two sites using basic Gaussian generalised linear models, with abundance as the response variable and site as a fixed effect. We also ran two additional models with reef zone as an additional factor, and then with an interaction between reef zone and species. We used a likelihood ratio test to compare these three models. Furthermore, for C. lunulatus, we determined whether aggression was a consequence of abundance by recording both aggressive and non-aggressive interactions between C. lunulatus pairs and calculating the probability that any given encounter would result in aggression. The probability was calculated by dividing the number of aggressive interactions by the number of total interactions. We then compared the probability of aggression for each focal individual between the two sites using a generalised linear model with probability of aggression as the response variable and site as the predictor variable.

Individual level

To visualise correlations of behaviours of individual pairs, we used a principal component analysis (PCA) with the Kaiser–Meyer–Olkin (KMO) criterion as a measure of sampling accuracy (Kaiser and Rice 1974) and Bartlett’s test of sphericity (Bartlett 1951) to ensure our data fit the assumptions of PCA. Kaiser and Rice (1974) suggest that a sampling adequacy of less than 0.5 indicates that the data are not suitable for further PCA analysis. To evaluate differences in traits between pairs within each site, we ran additional MANOVA tests comparing the time spent on each of the four behaviours (aggression, feeding, exploration and sociability) between the ten pairs within each of the two sites. For these tests, the behavioural traits (aggression, searching, travelling, feeding and sociability) were the response variables, with pair ID as the predictor variable. We used two separate MANOVAs, one for each site, rather than a single model with study site as a covariate, because the subsequent outputs from each test were used to calculate behavioural repeatability using an ANOVA approach (see below).

Repeatability estimates

We calculated the repeatability of each behaviour between individuals at each site based on the proportion data using the intraclass correlation coefficient (ICC, Nakagawa and Schielzeth 2010; Wolak et al. 2012). We took an ANOVA-based approach and calculated 1000 bootstrapped ICC estimates using ANOVA variance components in the ICC package (Wolak et al. 2012), using 2.5 and 97.5% confidence intervals from bootstrapped ICC estimates to identify any significant differences in repeatability between the two sites. To understand the variability of individuals around the population mean, as well as from each other, we used the mean standardisation (as defined in Dochtermann and Royauté 2019) of both the among and within (residual) individual variance (mean-scaled individual and mean-scaled residual variation) from bootstrapped variance components from the within site MANOVA tests, using equations in Dochtermann and Royauté (2019). Mean-scaled individual variation (Ia) calculates the proportion of variation, relative to the mean that can be explained by differences in the expression of behaviours between individuals. In contrast, mean-scaled residual variation (Iw) calculates the proportion of variation, relative to the mean that can be explained by differences in behaviour that are a consequence of unmeasured sources of variation (Dochtermann and Royauté 2019).

Results

Coral cover

For 2019, the mean coral cover across the reef flat, crest and slope was 35.69% at PK, the high resource site, compared to 17.67% at SAM, the low resource site. Coral cover was significantly higher at PK than SAM across both 2018 and 2019 (Fig. S2, ANOVA: F = 71.01, df = 1, P ≤ 0.001).

Population level

Territory sizes at the low resource site were significantly larger than those at the high resource site with mean (± standard error) territory sizes of 179.7 ± 35.6 m2 and 65.0 ± 13.8 m2 respectively (Fig. 1, Table S1, ANOVA, F = 9.04, df = 1.8, P = 0.02). Overall, behaviour also differed significantly between the two sites (Fig. 2, MANOVA: F = 6.87, df = 3.4, P < 0.01). Specifically, individuals at the higher resource site invested more time in aggression (ANOVA: F = 16.67, df = 1.18, P < 0.001), sociability (ANOVA: F = 7.87, df = 1.18, P = 0.01) and feeding (ANOVA: F = 20.17, df = 1.18, P < 0.001) and less time was invested in exploration (ANOVA: F = 24.96, df = 1.18, P < 0.001). These differences were also apparent from the 1000 bootstrap estimates, such that confidence intervals for the two sites did not overlap for any of the behaviours (Fig. S3).

Fig. 1
figure 1

C. lunulatus territories at a high and low resource site. Points represent the location of the individual markers placed within the territories (n = 5 per site) during 15-min observations; shaded areas are the minimum convex polygons

Fig. 2
figure 2

C. lunulatus behaviour at a high (blue) and low (red) resource site. Behaviours are measured as the time spent on each of the four behavioural categories (left-handed Y axis). n = 10 individuals per site, with five replicate values per individual. Black points represent the mean time spent in each behaviour by an individual such that one point refers to a single individual. Boxplot lines are median values, box lengths represent interquartile ranges and whiskers are 25th and 75th percentiles. A second Y axis is presented for aggression, due to the rarity with which this behaviour occurs

For comparing C. lunulatus density across the two study sites, the likelihood ratio test identified the model with an interaction term for reef zone and site to be the best fit for the data (χ2 = 258.53, df = 4, P =  < 0.001). The density of C. lunulatus differed significantly between the two sites (Fig. S4, GLM: t = 7.11, df = 1.58, P < 0.001). Despite this difference, conspecific aggression was not influenced by density—the number of encounters between conspecific pairs was the same between the two sites (GLM: t =  − 1.45, df = 1.58, P = 0.17); yet, the probability that an encounter would be aggressive was significantly higher at the higher resource site (GLM: t =  − 2.30, df = 1.58, P = 0.03). Likelihood ratio tests also identified the model with an interaction term for reef zone and study site to be optimal for comparing the density of C. lunulatus and C. baronessa at both the high (χ2 = 22.16, df = 4, P =  < 0.001) and the low (χ2 = 62.49, df = 4, P =  < 0.001) resource site. C. lunulatus density was greater than C. baronessa at the high resource site (Fig. S5, GLM: t = 4.578, df = 1.58, P =  < 0.001) but was equivalent at the low resource site (Fig. S5, GLM: t = 1.633, df = 1.58, P = 0.108).

When behaviours within the ‘exploration’ category were analysed separately with feeding behaviour, time spent searching and feeding differed at the two sites (Fig. S5). Individuals at the higher resource site invested less time in searching (ANOVA: F = 11.3, df = 1.18, P = 0.003) and more time in feeding (ANOVA: F = 20.17, df = 1.18, P < 0.001) compared to individuals at the lower resource site. Within the higher resource site, there was no significant difference identified between the time spent on searching and feeding (ANOVA: F = 0.25, df = 1.18, P = 0.63). In contrast, at the lower resource site, a greater proportion of time was spent searching than feeding (ANOVA: F = 49.39, df = 1.18, P < 0.001).

Individual level

At the high resource site, there was no significant variation between individuals in the time spent on any of the four behaviours (MANOVA: F = 0.592, df = 9.40 P = 0.552). There was significant variation between individuals at the low resource site in the proportion of time spent feeding (ANOVA: F = 2.23, df = 9, 40 P = 0.04). The proportion of variance from the ANOVAs attributed to both within and between individual variations was similar between the two sites, with the exception of feeding, where between individual variation accounted for 70% of total variance at the low resource site. In other words, within the low resource site, individuals varied in the amount of time they invested in feeding (Fig. 3).

Fig. 3
figure 3

From left to right: breakdown of ANOVA variance components from raw data (n = 10 per site, with five replicates per individual), bootstrapped distributions of repeatability estimates and summary statistics from bootstrapped data for each of the five measured behaviours at the high and low resource site. Summary statistics (mean repeatability (R), mean-scaled between individual variation (Ia) and mean-scaled residual individual variation (Iw)) were calculated from 1000 bootstrapped estimates of the raw behavioural data and ANOVA variance components. Confidence intervals in the distribution plots (centre) are 2.5 and 97.5% limits of bootstrapped repeatability distributions. Solid and dashed lines are confidence intervals for the high and low resource sites respectively

Repeatability estimates

Raw repeatability estimates for each trait were small, and most were negative, suggesting a high level of statistical noise. Bootstrapping the raw estimates reduced this statistical noise, and bootstrapped repeatability estimates were all positive, but no estimate exceeded 0.3 (Fig. 3). Feeding at the low resource site was the most repeatable behavioural trait (R = 0.299). For all traits, confidence intervals for both bootstrapped repeatability (Fig. 3) and mean-scaled between individual variation estimates (Fig. S7) at each site overlapped, indicating no significant difference in repeatability between the two sites. Although for aggression and feeding, the mean standardisation estimate was higher at the low resource site, and by an order of magnitude for aggression, confidence intervals overlapped for all behaviours between the two sites (Fig. S7). However, mean-scaled residual variation was significantly different for feeding (high: mean = 9.091, 2.5% CI = 9.016, 97.5% CI = 9.165; low: mean = 17.272, 2.5%CI = 17.117, 97.5% CI = 17.427), such that confidence intervals did not overlap (Fig. S8). Residual mean standardisation estimates were higher at the low resource site.

The PCA is included to visualise the data, with site and individual pairs overlaid as groups (Fig. 4, S9). Although the KMO sampling adequacy criterion produced a low value of 0.48, which is slightly below the acceptance threshold, the Bartlett test of sphericity was significant (P < 0.05). We therefore deemed that the PCA would be an acceptable tool to visualise the data. From PCA loading values, PC1 had positive associations with searching and travelling, and a negative association with aggression, feeding and sociability. PC2 had a strong positive association with aggression. The PCA suggests that sociability and aggression are positively correlated with one another, as are travelling and searching, whilst feeding is negatively correlated with the exploratory behaviours (travelling and searching).

Fig. 4
figure 4

The position of each of the 20 (n = 10 per site) breeding pair in relation of both the principal components, and each behaviour. The two sample sites, high (blue circles) and low (red triangles) resource availability, have been overlaid as an additional group. Ellipses around each site mean (larger symbols) are based on 95% confidence limits. PCA loadings for PC1 and PC2 are presented in the inset

Discussion

Using an observational approach, we have identified both broad (population level) and fine (individual level) scale differences in the behaviour of C. lunulatus between two sites of different resource availabilities. At the population mean level, we have shown that C. lunulatus in an area of high resource availability maintain small territories and invest time in aggressive territory defence and feeding. In contrast, C. lunulatus in an area of low resource availability held larger territories and spent less time on territory defence and more time invested in searching for food. At the individual level, we identified significant differences in the time spent feeding among individuals at the low resource availability site, and feeding was also the most repeatable behaviour at this site. By considering both population and individual-level analyses, combined with a consideration of the co-correlation of different behaviours, we can provide a deeper insight into the behavioural responses of C. lunulatus, than would be possible by considering the population means of individual behaviours in isolation.

Optimal foraging theory predicts that an increase in time spent foraging should yield an increase in food acquisition (MacArthur and Pianka 1966). One of the assumptions of optimal foraging theory is that all feeding patches are of similar quality, which is not the case across our two study sites, and it is also possible that within sites, there is variation in patch quality. Although territories were larger and the time invested in searching for food was greater at the low resource site, the time invested in actual bites of coral prey was lower. This suggests that individuals had to invest more time searching, i.e. moving between coral patches, because the available food was more sparsely distributed (Tricas 1989). The food maintenance hypothesis predicts that territory size is determined according to the food supply needed for short-term energetic needs (Stimson 1973). At the high resource site, food was readily available within a small space; thus, the time spent searching prior to being able to take a bite of prey was minimal. Individuals then had the time and energy to invest in territory defence (Davies and Hartley 1996). At the low resource site, food resources were sparse such that even when time was redistributed from aggression to searching, the nutritional gain was still lower than at the high resource site. A negative correlation between exploratory traits and feeding therefore emerged across both sites. This potential trade-off highlights the need to consider multiple traits together to fully understand the response of individuals to environmental change (Sih et al. 2004).

The differences in territory size that we identified for C. lunulatus in sites with different resources differ from previous work, which found territory size decreased with resource availability in the dominant specialist C. baronessa but not in generalist corallivores, including C. lunulatus (Berumen and Pratchett 2006). These data were collected in a different region, with different abundances, densities and diversity of obligate corallivorous butterflyfish, suggesting there is a degree of context specificity in butterflyfish territoriality at the species level. Heterospecific aggression is more prominent in C. baronessa than C. lunulatus (Berumen and Pratchett 2006; Blowes et al. 2013). As the density of C. lunulatus was greater than that of C. baronessa at the high resource site, i.e. where C. lunulatus aggression is greater, the presence of more aggressive competitors, such as C. baronessa, could therefore be a determinate of territoriality in C. lunulatus, along with resource availability.

Differences in aggression and exploration behaviour between our two study sites are consistent with the principles of game theory, specifically the Hawk-Dove game (Maynard Smith and Price 1973), and the principles of the model of economic defendability (Wyman and Hotaling 1988). Under normal (high coral) conditions, aggression within C. lunulatus individuals is high. Increasing disturbance to an intermediate level increases the value of the resource (Wyman and Hotaling 1988), in this case, coral within a C. lunulatus territory. In the Hawk-Dove game, if the value of a resource increases, or the ‘odds’ are higher, it pays for an individual to play ‘Hawk’ and act aggressively more often than under the original conditions (Maynard Smith 1982). This way, individuals can maximise the use of available resources by feeding on what high-quality resources remain (Cole et al. 2008). With additional disturbance, there will be a threshold beyond which aggression will decrease (Peiman and Robinson 2010; Keith et al. 2018) and exploration increase, as identified in our study, due to a nutritional deficit and resource availability trade-off (Berumen and Pratchett 2006). The cost of being aggressive is then outweighed by the benefit of playing ‘dove’, and remaining passive, thus a higher frequency of individuals adopting the low aggression strategy is expected in the population, as seen in our results.

The threshold of behavioural change is likely to be variable across butterflyfish species, locations and even individuals, such that individual state (e.g. physiological, environmental, morphological) influences the cost–benefit trade-off of aggressive interactions (Dingemanse and Wolf 2010). This threshold may also be determined by the extent to which behaviours are fixed or plastic within an individual. If behaviours are a result of fixed ‘personalities’, then a frequency change in behaviour can only occur via selection (Dall et al. 2004), whereas if behaviours are plastic, then changes can occur within generations. Identifying the threshold at which behavioural responses occur is important for management efforts, as behavioural modifications have implications to the future distribution and persistence of species (Delarue et al. 2015).

High repeatability between individuals within a population indicates high behavioural consistency, such that within a population, individuals consistently behave differently from one another (Lessells and Boag 1987). Behavioural repeatability between individuals may be low in two scenarios: either if within individual variation is high, or if between individual variation is low (Nakagawa and Schielzeth 2010). Our estimates for behavioural repeatability between individuals were all less than 0.5, which tentatively indicates that the measured behaviours show a degree of behavioural plasticity within individuals (Wilson 2018). Behaviours dependent upon an individual’s physiology or morphology, i.e. their resource allocation (Laskowski et al. 2020), are predicted to be consistent within an individual, but variable between individuals, and therefore repeatable (Bell et al. 2009). Repeatability will be lower for traits dependent on how an individual utilises the resources in their environment, i.e. on resource acquisition (Laskowski et al. 2020), such as behaviours associated with energetic needs, e.g. feeding, and the social environment, e.g. aggression (Bell et al. 2009). Surprisingly, aggression and feeding at the low resource site had the highest repeatability estimates in our study. However, if there is an interaction between an individual and its environment that contributes to between individual variation, for example, if individuals in the low resource site face greater fine-scale variation in the amount of food in their territory compared to individuals in the high resource site, repeatability estimates could be inflated (Nakagawa and Schielzeth 2010). We identified higher residual (mean-scaled) variation for feeding at the low resource site. There is, therefore, a significant amount of variation in trait expression that is a consequence of unmeasured sources of variation (Dochtermann and Royauté 2019). If this unmeasured source of variation is environmental, then an interaction between the environment and individuals at the low resource site is plausible. The high degree of unmeasured variation suggests that there is a degree of within territory context specificity that is influencing the behaviour of C. lunulatus that would not have been identified if we had only considered behaviour at the population level.

One potential cause of an interaction between individuals and the environment is habitat patchiness resulting in some individuals having greater access to resources than others. Variation in habitat patchiness can influence the behaviour of individuals to varying extents according to the specific area of habitat they occupy (Cattarino et al. 2015; van Leeuwen et al. 2017). Habitat patchiness may be driving variation in feeding and aggression in our study, masking the amount of variation that can be directly associated with intrinsic differences between individuals at low resource availability site. It is possible that a preference for specific species of coral as a food source could be driving this variation, rather than habitat patchiness directly. However, we did not quantify the resource availability to the coral species level within each territory due to the temporal scale and design of our study. Nonetheless, the time invested in feeding was significantly different between individuals at the low resource site. As C. lunulatus is an obligate corallivore, feeding is directly related to the amount of available live resource, which was significantly lower at the low resource site. A lower nutritional gain at the low resource site also makes energy investment in aggression too costly compared to investing energy in foraging for what little resources are available (Berumen and Pratchett 2006). Therefore, aggression is also directly linked to the availability of live resource and will also be influenced by habitat patchiness across different territories. C. lunulatus individuals at the low resource site may change their behavioural strategy according to the quality of their territory and the distribution of food availability within the territory (Righton and Mills 2007). An influence from the spatial configuration of habitat would lead to higher consistency within individuals, and therefore the higher-than-expected estimate of repeatability for aggression and feeding at the low resource site.

We have offered insight into how behaviour at both the population and individual level influences the response of C. lunulatus individuals to different levels of resource availability, which suggests that loss of cover through environmental disturbance could result in shifts in behaviour at a population level. By looking at behavioural change at both individual and population levels through observation in a natural setting, we have tentatively highlighted the potential for individual behavioural strategies to be masked by mean effects. Our work also highlights the need to both identify the threshold at which behavioural changes occur and identify the relative roles of behavioural plasticity and behavioural consistency, or ‘personalities’. This could be achieved by observing the behaviours of the same individuals across different contexts (varying resource) within sites. To further understand behaviour within sites, our results suggest that context-specific factors such as environmental variation within territories are drivers of behaviour at the individual level, and should be considered and quantified in the future. This will enable a more thorough understanding of the distribution, adaptation and persistence of important reef indicator species, which in turn can inform future management efforts.