library(terra)
# 1. Read cleaned global Stinknet records and check structure
stink <- read.csv("data/stinknet_occurrences_clean.csv", stringsAsFactors = FALSE)
dim(stink)
names(stink)
# 2. Tabulate records across our four continental windows
table(stink$region)
# 3. Compare seasonal flowering/detection months: South Africa (ZA) vs. SW U.S. (SWUS)
za_m <- table(factor(stink$month[stink$region == "ZA"], levels = 1:12, labels = month.abb))
swus_m <- table(factor(stink$month[stink$region == "SWUS"], levels = 1:12, labels = month.abb))
par(mfrow = c(1, 2))
barplot(za_m, col = "forestgreen", border = "white", las = 2,
main = "South Africa (Southern Hem. Spring)", ylab = "GBIF Records")
barplot(swus_m, col = "firebrick", border = "white", las = 2,
main = "SW U.S. (Northern Hem. Spring)", ylab = "GBIF Records")
par(mfrow = c(1, 1))
# 4. Inspect earliest and latest detection years by region
tapply(stink$year, stink$region, range, na.rm = TRUE)Crossing Hemispheres Before the Wave Breaks: Niche Transferability and Early Detection of Stinknet (Oncosiphon pilulifer)
A Three-Module Interactive Invasion Biogeography & Field Survey Lab
This lab scales across introductory environmental/biological sciences and upper-division botany, restoration, or spatial ecology courses:
- Biogeographic & Statistical Concepts open every tab so ecological theory and statistical mechanics stay tightly linked.
- Core Inquiry prompts guide all students through cross-continental modeling, non-equilibrium diagnostics, and building an actionable Yuma County field survey plan.
- Upper-Division Synthesis callouts challenge advanced students to interrogate niche conservatism, extrapolation risk, and EDRR survey design.
- Appendix (Base R &
terra) provides three scaffolded coding exercises bridging the interactive apps to reproducible spatial analysis in R.
1 Part 0: From the Cape to the Gila — A Living Invasion in Real Time
1.1 Ecological Context: Why Stinknet Changes the Sonoran Desert
Stinknet (Oncosiphon pilulifer, Asteraceae)—also known as globe chamomile—is a winter annual native to the winter-rainfall Fynbos and Succulent Karoo biomes of South Africa. Its bright yellow, globe-shaped, rayless flower heads and finely dissected feathery leaves give off a sharp, caustic turpentine odor when crushed.
First documented in Southern California in the early 1980s and in Maricopa County, Arizona in the late 1990s, stinknet spent decades in a quiet lag phase before surging explosively across the Phoenix basin after wet winters in the late 2010s. Unlike native Sonoran desert annuals that patchily weave between shrubs, stinknet forms dense, continuous carpets across vacant lots, washes, roadsides, and rocky bajadas. When May heat arrives, those carpets cure into volatile, resinous fine fuels that carry fast-moving wildfire through fire-intolerant saguaro–palo verde desert—contributing directly to the June 2020 wildfires north of Phoenix.
Along the Lower Colorado River Valley and Yuma County, however, stinknet still sits near the very base of the invasion curve. Seeds are arriving along Interstate 8 from both San Diego/Imperial County to the west and Phoenix to the east, yet vast stretches of washes, roadsides, and desert pediments remain uncolonized. That brief window is the sweet spot for Early Detection and Rapid Response (EDRR): finding and documenting vanguard populations while eradication is still ecologically and economically possible.
1.2 Breaking the Equilibrium Assumption
When we model native trees (such as Pinus or Bursera microphylla), we assume that—aside from physical dispersal barriers—the species has had millennia to reach rough equilibrium with regional climate. An active biological invasion shatters that assumption:
- False Absences Everywhere: In Yuma County, an “absence” rarely proves the climate is unsuitable; it usually means propagules have not yet landed and germinated there.
- Niche Model vs. Invasion Model: Predicting an active invasion requires separating two distinct questions:
- The Niche Model (Module 1): Trained in the native South African range (where the species is near equilibrium with climate), asking where on other continents can stinknet physiologically survive?
- The Invasion Model (Module 2 & 3): Weaving abiotic climate suitability together with human and hydrologic movement vectors—interstate highways, disturbed margins, washes, and distance to active infestations—to ask where is it arriving right now, and where should we walk this spring to intercept it?
1.3 Pre-Lab Challenge: Formulate Your Invasion Hypotheses
Before launching the apps, write down your predictions:
- Hypothesis 1 (Cross-Hemispheric Transfer): Because South Africa’s Western Cape and Southern California/Arizona both receive winter frontal rain, where do you expect a South Africa-trained niche model to succeed—and where might Yuma’s extreme summer heat push predictions into non-analog climate?
- Hypothesis 2 (Yuma Arrival Corridors): Within Yuma County, which landscape features (interstate rest stops/off-ramps, agricultural canals, desert washes like Fortuna Wash, or undisturbed rocky slopes) do you predict carry the highest near-term risk of first arrival?
2 Module 1 (app1.R): Cross-Continental Niche Transferability
Launch Module 1 (app1.R) in RStudio. Modeling parameters (native Asteraceae Target-Group Background, continental windows, and 1:1 balanced sampling without replacement) are held cleanly under the hood so you can focus on cross-hemispheric ecology; full technical details are documented in Part 4.
2.1 Tab 1 (Native Niche: South Africa): Calibrating at Equilibrium
- Biogeographic Concept — Native-Range Equilibrium & Rainfall Regimes: Southern Africa transitions sharply from winter-rainfall Fynbos and Succulent Karoo in the west to summer-rainfall grassland and savanna in the east. Training a model across this entire native gradient captures stinknet’s physiological dependence on cool-season moisture.
- Statistical Concept — White-Box CART vs. Random Forest Ensembles: Toggle between a single interpretable CART decision tree and a 250-tree Random Forest (Breiman, 2001; Cutler et al., 2007). Both are evaluated via ROC/AUC and MaxSSS thresholding (Liu et al., 2005, 2013), paired with variable importance and partial dependence curves.
2.1.1 Lab Exercise 1.1
- Core Inquiry: Start with CART Decision Tree selected in the sidebar. Read the pruned South Africa decision tree from root to leaves. Which two bioclimatic variables govern stinknet’s native range?
- Core Inquiry: Switch to Random Forest (250 Trees). Compare the Native Evaluation ROC (AUC) and the smoothed South Africa suitability map against CART. Read the Top Native Driver Partial Dependence curve: over what exact range of values does native suitability peak?
2.2 Tab 2 (Cross-Continental Projection & MESS): Extrapolating Across Oceans
- Biogeographic Concept — Climatic Analogs vs. Novel Environments: A species crossing hemispheres may encounter combinations of temperature and seasonality that do not exist anywhere in its native continent. Forecasting into those non-analog environments is inherently uncertain.
- Statistical Concept — MESS (Multivariate Environmental Similarity Surface; Elith et al., 2010): MESS compares every target-continent pixel against the native training distribution across all selected predictors. Values > 0 (blue) lie inside South Africa’s climatic envelope (interpolation); values < 0 (red/orange) lie outside the native range in at least one predictor (non-analog extrapolation).
2.2.1 Lab Exercise 1.2
- Core Inquiry: Project your South Africa-trained Random Forest onto all three target continents using the Target Continent Projection selector:
- SW North America (Active Invasion)
- Southern Australia (Established Invasion)
- Mediterranean Basin (Early-Watch Comparison)
MESS < 0). - Core Inquiry: Focus on SW North America. Where do red
MESS < 0zones appear across Southern California, Phoenix, and Yuma? Look closely at the crimson occurrence dots overlaid on the projection map: are there established populations thriving where the native model predicts low suitability or non-analog climate?
2.3 Tab 3 (Hemisphere-Safe Climate Comparison): Why Quarterly Variables Bridge Hemispheres
- Biogeographic Concept — Seasonal Inversion Across the Equator: Winter in Cape Town falls in June–August, whereas winter in Yuma falls in December–February. Winter-annual desert plants track thermal-moisture synchrony (rain arriving during cool months), not calendar dates.
- Statistical Concept — Hemisphere-Invariant Bioclimatic Indices: WorldClim’s
BIO1–BIO19define variables by warmest, coldest, wettest, and driest quarters rather than fixed months (BIO19= Precipitation of the Coldest Quarter;BIO5= Max Temp of the Warmest Month). Plotting both continents on a shared color scale reveals exact abiotic matches and mismatches.
2.3.1 Lab Exercise 1.3
- Core Inquiry: On Tab 3, inspect
BIO19: Precip Coldest Qtr (mm),BIO5: Max Temp Warmest Month (°C), andBIO15: Precip Seasonality (CV)comparing Southern Africa against SW North America. Use the horizontal multi-continent boxplot below the maps to identify which variable pushes Phoenix and Yuma outside South Africa’s native range.
2.4 Tab 4 (Niche Shift: PCA & COUE Analysis): Conservatism vs. Expansion
- Biogeographic Concept — Niche Conservatism vs. Realized Niche Shift: When an invader occupies climates beyond its native envelope, two mechanisms compete: (1) ecological release (escaping native competitors, herbivores, or pathogens expands its realized niche without evolutionary change), or (2) rapid adaptive evolution or human irrigation/microclimate buffering.
- Statistical Concept — COUE Decomposition & Schoener’s \(D\) (Broennimann et al., 2012; Guisan et al., 2014): Projecting invaded occurrences onto PCA axes calibrated in South Africa decomposes niche dynamics into three percentages: Stability (invaded cells inside native niche), Expansion (invaded cells outside native niche), and Unfilling (native niche space not yet occupied in the invaded range), alongside Schoener’s \(D\) (\(0\) = no overlap, \(1\) = identical distribution).
2.4.1 Lab Exercise 1.4
- Core Inquiry: Inspect the Cross-Continental PCA plot and COUE Niche Shift Metrics table. Compare SW North America against Southern Australia:
- Which invaded continent shows higher Niche Expansion (%) into climates absent from South Africa?
- What does a high Unfilling (%) value imply about the remaining invasion potential in North America?
In Module 1, remove BIO5: Max Temp Warmest Month (and BIO10 if checked) from the sidebar predictors so the model relies primarily on winter temperature (BIO6) and cool-season moisture (BIO12, BIO15, BIO19). Re-inspect Tab 2 (SW North America Projection & MESS) and Tab 4 (COUE).
- How does omitting summer heat change predicted suitability and
MESS < 0coverage across Phoenix and Yuma? - Because stinknet survives scorching Sonoran summers strictly as dormant soil-bank seeds rather than active green tissue, argue biologically whether
BIO5represents a true physiological barrier or a misleading proxy correlated with South Africa’s coastal geography.
3 Module 2 (app2.R): SW U.S. Invasion Curve, Equilibrium Violation & Vector Risk
Launch Module 2 (app2.R) in RStudio.
3.1 Tab 1 (Invasion Timeline & Lag Curve): Reading the Shape of an Invasion
- Biogeographic Concept — Lag Phases, Exponential Spread & Seasonal Phenology: Biological invasions characteristically exhibit a multi-decade lag phase while small founder populations build propagule pressure, followed by rapid exponential expansion once secondary dispersal hubs (e.g., Phoenix metro) ignite. For winter annuals, detection visibility pulses sharply during spring bloom.
- Statistical Concept — Cumulative First-Detection Curves & Earliest-Year Grid Thinning: Collapsing raw records to 1 km cells while retaining the earliest recorded year per cell separates genuine geographic spread into new territory from repeated iNaturalist re-sightings of the same patch.
3.1.1 Lab Exercise 2.1
- Core Inquiry: Press Play on the Invasion Timeline Animator (or scrub the slider manually from the 1980s to the present). Identify: (a) where stinknet lingered during its lag phase, (b) the approximate year the cumulative invasion curve bent sharply upward, and (c) how detections align with the blue Interstate highways (I-10 and I-8).
- Core Inquiry: Inspect the Detection Phenology bar chart. Which three calendar months produce the overwhelming majority of detections, and why must field surveys in Yuma be timed tightly to that window?
3.2 Tab 2 (Equilibrium Violation Experiment): Why Local-Only Models Miss the Wave
- Biogeographic Concept — Non-Equilibrium Range Filling: During an ongoing invasion, modeling strictly from the invaded range treats climatically suitable regions ahead of the front (like Tucson in 2012 or Yuma today) as “unsuitable absences.” Pooling native South African records with early regional detections restores the missing climatic signal.
- Statistical Concept — Temporal Hindcast Validation: Splitting SW U.S. detections at a historical cutoff year (e.g.,
2015) creates a true out-of-time forecast test: models trained strictly on pre-cutoff data are evaluated on how accurately they anticipate the post-cutoff red detections that arrived years later.
3.2.1 Lab Exercise 2.2
- Core Inquiry: Set the SW U.S.-Only Training Cutoff Year to
2015(and also test2010and2018). Compare the SW U.S.-Only Model (left) against the Pooled Global Model (right) and read the Forecast Test printout below the maps.- What percentage of post-2015 detections did the SW U.S.-Only model correctly flag (\(\ge\) MaxSSS) compared to the Pooled Global model?
- Looking at the Lower Colorado River Valley / Yuma corridor, how does the Pooled Global model change your assessment of local invasion risk compared to a local-only model?
3.3 Tab 3 (Composite Invasion Risk): Weaving Climate with Human Movement
- Biogeographic Concept — Anthropogenic Vectors & Propagule Pressure: Invasive seeds rarely cross 150 km of desert on wind alone; they ride highway vehicle tires, roadside mowing equipment, fill dirt, and flash-flood washes, establishing first on disturbed urban and agricultural edges where native perennial cover is stripped away.
- Statistical Concept — Multi-Criteria Weighted Overlay & Distance-Decay Kernels: Converting distance to highways (\(d_{\text{hwy}}\)) and distance to known infestations (\(d_{\text{known}}\)) into exponential decay scores (\(e^{-d / \lambda}\)) normalizes physical distances onto a shared
[0, 1]scale so they can be combined transparently with Pooled Global climate suitability and disturbed landcover (Frac_Disturbed).
3.3.1 Lab Exercise 2.3
- Core Inquiry: Inspect the two horizontal boxplots on the right side of Tab 3 (Highway Corridor Affinity and Anthropogenic Disturbance Affinity). How does the median distance to primary highways and disturbed landcover fraction of invading stinknet compare to surveyed SW Asteraceae herbarium specimens?
- Core Inquiry: Experiment with the four component weights (
Climate,Highway Proximity,Urban/Ag Disturbance,Propagule Proximity) and the Highway Corridor Decay Scale (km). Describe how increasingHighway Proximityreshapes risk along the I-8 corridor connecting El Centro, Yuma, Gila Bend, and Phoenix.
4 Module 3 (app3.R): Yuma County EDRR Survey Planner & Field Action
Launch Module 3 (app3.R) in RStudio. All layers here operate at ~250 m resolution across Yuma County and the Lower Colorado / Gila corridor.
4.1 Tab 1 (Yuma EDRR Priority Map) & Tab 2 (Individual EDRR Layers): Designing a Field Survey
- Biogeographic Concept — Early Detection & Rapid Response (EDRR): Searching an entire desert county at random is impossible. Effective EDRR focuses human eyes where three conditions intersect: (1) Climate Suitability, (2) High Vector/Disturbance Exposure (I-8/US-95 shoulders, urban margins, washes like Fortuna Wash and the Gila River), and (3) Survey Blind Spots (areas with little or no recorded Jan–Apr botanical survey effort).
- Statistical Concept — Constrained Spatial Optimization & Non-Maximum Suppression: To generate practical field waypoints rather than 12 stacked pins on the same highway off-ramp, the app filters pixels within a user-defined walking radius of roads (
Max Walking Distance) and applies greedy spatial spacing (minimum spacing in km) to select the highest-priority distinct targets.
4.1.1 Lab Exercise 3.1
- Core Inquiry: Start on Tab 2 (Inspect Individual EDRR Layers) to study each ingredient separately: Pillar 1 (Global Climate Suitability), Pillar 2 (Corridor, Wash & Disturbance Risk), Pillar 3 (Survey Blind Spots), and Distance to Nearest Known Stinknet Detection. Where in Yuma County do high corridor risk and low winter-spring botanical survey effort overlap?
- Core Inquiry: Return to Tab 1 (Yuma EDRR Priority Map & Field Waypoints). Adjust the three EDRR Pillar Weights, toggle Boost Wash & River Margins, set a realistic Max Walking Distance from Any Road (e.g.,
0.5–1.0 km), and pick8–12auto-generated targets spaced at least3 kmapart. - Core Inquiry (Local Knowledge Integration): Click directly on the map to place 2–3 custom student pins (blue stars) at specific Yuma locations you know well (for example, a trailhead near the Gila Mountains, a Fortuna Wash crossing, an I-8 exit, a park edge, or a vacant lot near campus). Inspect the live Field Survey Waypoints table and note each site’s
Field_Rationale. - Deliverable — Export Your Field Packet: Click the export buttons beneath the map to download:
- Your team’s Waypoints in KML or GPX (test opening the
.kmlin Google Earth or the.gpxin a mobile GPS app). - Your Printable Coordinate Table (
CSV) and Field Map (PNG). - Your Yuma EDRR Priority Grid (
GeoTIFF) for Appendix Exercise C.
- Your team’s Waypoints in KML or GPX (test opening the
4.2 Tab 3 (Yuma Detection Window & Look-Alike Guide): Closing the Case of the Missing Absence
- Biogeographic Concept — Phenological Triggers & Verified Negative Surveys: In hyper-arid Yuma, stinknet germinates following November–February Pacific storms (>15–25 mm) and blooms visibly from February through April. Recording verified negative surveys—places searched thoroughly during peak bloom where zero stinknet was found—solves the exact absence problem explored in our Bursera suite by turning guesswork into empirical absence data.
- Statistical Concept — Reducing False Positives & False Negatives in Citizen Science: Misidentifying native dogweed (Dyssodia) or pineapple weed (Matricaria discoidea) as stinknet introduces false positives into GBIF; failing to report zero-detection searches leaves blind spots unmapped.
4.2.1 Lab Exercise 3.2
- Core Inquiry: Study the Stinknet vs. Common Sonoran Look-Alikes table on Tab 3. List the three quickest diagnostic field checks (flower head shape/rays, leaf structure, and crushed-leaf odor—while wearing gloves!) that separate Oncosiphon pilulifer from Matricaria discoidea and native Dyssodia/Adenophyllum.
- Field Protocol Reflection: Outline a concise 1-paragraph field survey protocol for your team’s assigned Yuma waypoints—stating the optimal calendar window, safety precautions for caustic volatile oils, what photos/metadata to upload to iNaturalist if you detect a vanguard patch, and exactly what information to log if you confirm zero stinknet at a site.
Compare two competing Yuma County survey strategies in Module 3: * Strategy A (Containment Focus): High weight on Pillar 2 (Corridors/Washes/Known Proximity), 0.0 weight on Blind Spots. * Strategy B (Surveillance & Verified-Absence Focus): Balanced weights across Climate (0.30), Corridors (0.35), and Survey Blind Spots (0.35).
Export the CSV waypoint tables for both strategies. Quantify how the geographic distribution, mean distance to I-8/US-95, and mean Spring_Survey_Effort shift between Strategy A and Strategy B, and argue which allocation—or hybrid schedule across a single field semester—delivers the greatest conservation return for Yuma County land managers.
5 Appendix: Hands-On Base R & terra Companion Exercises
These three scaffolded exercises introduce foundational Base R and terra spatial workflows alongside Modules 1–3. Run them in RStudio with your working directory set to Stinknet_Invasion_Suite/.
5.1 Exercise A (Module 1 Companion): Global Occurrences & Seasonal Phenology
Learning Goals: Read tabular occurrence data, tabulate counts by continent and month, inspect the SW U.S. invasion curve, and plot occurrence vectors in WGS84.
5.2 Exercise B (Module 2 Companion): SW U.S. Raster Properties & Vector Affinity
Learning Goals: Inspect the 2 km SW U.S. multi-band SpatRaster, explore highway distance and disturbance rasters with plot(), click(), and zoom(), and extract environmental values to occurrences.
library(terra)
# 1. Load SW U.S. stack, country boundaries, and primary highways
sw_stack <- rast("data/swus_invasion_2km.tif")
w_bound <- vect("data/world_boundaries_wgs84.gpkg")
hwys <- vect("data/swus_primary_highways.gpkg")
names(sw_stack)
res(sw_stack)
crs(sw_stack, describe = TRUE)
# 2. Plot Distance to Primary Highways (km) and Coldest-Quarter Rain (BIO19)
d_hwy <- sw_stack[["Dist_Highway_km"]]
plot(clamp(d_hwy, 0, 50), col = hcl.colors(50, "Grays"),
main = "Distance to Primary Highways (km, capped at 50 km)")
plot(crop(w_bound, ext(d_hwy)), add = TRUE, col = NA, border = "gray40")
plot(hwys, add = TRUE, col = "#0072B2", lwd = 1)
# 3. Interactive click: inspect 3 points along I-8 from San Diego to Yuma to Phoenix
click(sw_stack[[c("BIO5", "BIO19", "Dist_Highway_km", "Frac_Disturbed")]], n = 3, xy = TRUE)
# 4. Compare median Highway Distance for Stinknet vs. SW Asteraceae TGB
sw_p <- read.csv("data/stinknet_swus_1km.csv", stringsAsFactors = FALSE)
sw_b <- read.csv("data/tgb_swus_1km.csv", stringsAsFactors = FALSE)
cat("Median Highway Distance (Stinknet):", round(median(sw_p$Dist_Highway_km, na.rm = TRUE), 2), "km\n")
cat("Median Highway Distance (Asteraceae):", round(median(sw_b$Dist_Highway_km, na.rm = TRUE), 2), "km\n")5.3 Exercise C (Module 3 Companion): Analyzing Your Exported Yuma EDRR Field Plan
Learning Goals: Load your exported 250 m Yuma EDRR Priority GeoTIFF and CSV waypoint table from Module 3, summarize priority scores by field rationale, and generate a clean map with local roads and washes.
(Prerequisite: Export your Priority Grid GeoTIFF and Waypoint CSV from Module 3 Tab 1 into your project folder and update the date string in the filenames below.)
library(terra)
# 1. Locate your most recent exported Yuma EDRR GeoTIFF and Waypoint CSV
tif_file <- tail(sort(list.files(pattern = "^Yuma_Stinknet_EDRR_Priority_250m_.*\\.tif$")), 1)
csv_file <- tail(sort(list.files(pattern = "^Yuma_Stinknet_EDRR_Targets_.*\\.csv$")), 1)
edrr_r <- rast(tif_file)
targets <- read.csv(csv_file, stringsAsFactors = FALSE)
# 2. Load Yuma County boundary, major highways, and washes/rivers
y_cnty <- vect("data/yuma_county_boundary.gpkg")
y_roads <- vect("data/yuma_major_roads.gpkg")
y_washes <- vect("data/yuma_washes_rivers.gpkg")
# 3. Summarize target counts and mean Priority Score by Field Rationale
print(table(targets$Field_Rationale))
tapply(targets$Priority_Score, targets$Field_Rationale, mean, na.rm = TRUE)
# 4. Convert waypoints to a SpatVector and map over the clipped Yuma priority grid
t_vect <- vect(targets, geom = c("Longitude", "Latitude"), crs = "EPSG:4326")
plot(mask(edrr_r, y_cnty), col = hcl.colors(50, "YlOrRd", rev = TRUE), range = c(0, 1),
main = "Yuma County Team EDRR Survey Plan (250 m WGS84)")
plot(y_cnty, add = TRUE, col = NA, border = "black", lwd = 1.6)
plot(y_washes, add = TRUE, col = adjustcolor("dodgerblue", 0.45), lwd = 0.8)
plot(y_roads, add = TRUE, col = "gray25", lwd = 1.4)
points(t_vect, pch = 21, bg = "firebrick", col = "white", cex = 1.2)
text(t_vect, labels = targets$Target_ID, pos = 3, cex = 0.7)
# 5. Calculate how many hectares in Yuma County exceed a high-priority cutoff (>= 0.70)
# Each 0.0025 deg cell at 32.7°N is approximately 278 m x 234 m (~6.5 ha)
high_cells <- global(mask(edrr_r, y_cnty) >= 0.70, "sum", na.rm = TRUE)[[1]]
cat("High-Priority Survey Area (>= 0.70) in Yuma County: ~", round(high_cells * 6.5), "hectares\n")Data Sources, Curatorial Architecture & Acknowledgments
5.4 Under-the-Hood Modeling Design
To keep the interactive focus on cross-continental transferability, non-equilibrium bias, and EDRR survey design, four foundational modeling decisions are standardized across the suite:
- Presence Curation: Global Oncosiphon pilulifer records (capturing synonyms O. piluliferum, Pentzia globifera, and Matricaria pilulifera via GBIF’s
usageKey) were gathered via an uncapped GBIF download and screened withCoordinateCleanerto exclude captive/living specimens, fossils, zero coordinates, country centroids, institution coordinates, and marine errors. Records were collapsed to unique 5 km cells across all four continental windows (Module 1) and unique 1 km cells across SW North America (Module 2 & 3), always retaining the earliest recorded year per grid cell so repeated modern sightings never overwrite invasion arrival history. - Survey-Controlled Absence Pools (Target-Group Background): Following Phillips et al. (2009), absences are gathered from uncapped GBIF downloads of preserved Asteraceae herbarium specimens in Southern Africa (5 km) and SW North America (1 km), strictly excluding O. pilulifer and any grid cell occupied by it. Using co-familial museum vouchers anchors absences to authentic botanical search effort across both winter-rain and summer-rain regimes.
- Continental Modeling Domains: Rather than constraining native models to narrow local buffers, Southern Africa (
14° to 34°E,-36° to -21°S) and SW North America (-122° to -108°W,28° to 38°N) span broad regional biome transitions—capturing hard seasonal precipitation and thermal boundaries necessary for cross-continental projection. - Class Balancing: Every CART and Random Forest fit draws a 1:1 balanced sample without replacement (
sample_balanced_pa(), capped at 500–800 cells per class with fixedseed = 42), preventing dense urban invasion fronts or vast Asteraceae herbarium pools from skewing prior class probabilities.
5.5 Biodiversity, Climate & Geospatial Data Archives
- Global Stinknet Occurrences (Oncosiphon pilulifer): Uncapped GBIF download (GBIF.org, 01 December 2026, https://doi.org/10.15468/dl.vcnezm).
- Southern Africa Native Target-Group Background (Asteraceae Preserved Specimens): Uncapped GBIF download (GBIF.org, 01 December 2026, https://doi.org/10.15468/dl.j8w7zw).
- SW North America Regional Target-Group Background (Asteraceae Preserved Specimens): Uncapped GBIF download (GBIF.org, 01 December 2026, https://doi.org/10.15468/dl.98xrhz).
- Yuma County Winter–Spring Botanical Survey Effort (Jan–Apr Plantae): Uncapped GBIF download (GBIF.org, 01 December 2026, https://doi.org/10.15468/dl.nqwakg), smoothed onto the 250 m Yuma grid (
log10(count + 1)) to map genuine botanical search blind spots. - Climate, Terrain & Anthropogenic Disturbance: WorldClim 2.1 bioclimatic variables (
BIO1–BIO19) and elevation (2.5 arc-mincontinental windows;30 arc-secSW U.S. tiles; Fick & Hijmans, 2017); Terrain Ruggedness Index (TRI); ESA WorldCover built-up and cropland layers combined intoFrac_Disturbed. - Transportation & Hydrography Corridors: U.S. Census Bureau TIGER/Line 2023 primary roads (SW U.S.) and Yuma County roads, linear water (washes, canals, Gila and Colorado Rivers), and county boundaries via
tigris.
5.6 Conceptual Design & Human–AI Collaboration Disclosure
The ecological framing, place-based Yuma County Early Detection and Rapid Response (EDRR) pedagogy, cross-hemispheric transferability progression, look-alike field tie-in, and relational scientific voice were conceived and directed by Prof. Jacob Gibson (Arizona Western College / Northern Arizona University).
This three-module R Shiny suite (R/helpers_stinknet.R, app1.R–app3.R), cache-first curation pipeline (scripts/01_stinknet_data_prep.R), Quarto quickstart guide, and tiered CURE laboratory manual were co-developed in an iterative human–AI collaboration with Gemini (Google, Large Language Model, December 2026). Specifically, Gemini contributed to:
- Multi-Scale Spatial & GBIF Pipeline Engineering: Co-authoring the uncapped GBIF download workflow with automated DOI logging, continental 5 km / SW U.S. 1 km / Yuma 250 m
terraandtigrisrasterization, and fast grid-based corridor distance transforms. - Statistical & Field-Export Implementation: Implementing Base R and
terraspatial plotting, MESS extrapolation surfaces, COUE niche-shift metrics, temporal out-of-time equilibrium tests, greedy spatially spaced EDRR waypoint selection, and zero-dependency KML/GPX exporters. - Curriculum Co-Authoring & Verification: Structuring tab-by-tab Biogeographic and Statistical Concepts, tiered inquiry prompts, and Base R/
terracompanion exercises. All ecological interpretations, cartographic choices, statistical outputs, and field protocols were independently tested, verified, and curated by the human author.
- Suggested Software & Curriculum Citation: Gibson, J. (2026). Crossing Hemispheres Before the Wave Breaks: Cross-Continental Niche Modeling and Yuma County EDRR Suite for Stinknet (Oncosiphon pilulifer) (Version 1.0, co-developed with Google Gemini) [Computer software and curriculum]. Arizona Western College / Northern Arizona University.
References
5.7 Invasion Ecology, Niche Transferability & Species Distribution Modeling
- Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
- Broennimann, O., Fitzpatrick, M. C., Pearman, P. B., Petitpierre, B., Pellissier, L., Yoccoz, N. G., Thuiller, W., Fortin, M.-J., Randin, C., Zimmermann, N. E., Graham, C. H., & Guisan, A. (2012). Measuring ecological niche overlap from occurrence and spatial environmental data. Global Ecology and Biogeography, 21(4), 481–497. https://doi.org/10.1111/j.1466-8238.2011.00698.x
- Cutler, D. R., Edwards, T. C., Jr., Beard, K. H., Cutler, A., Hess, K. T., Gibson, J., & Lawler, J. J. (2007). Random forests for classification in ecology. Ecology, 88(11), 2783–2792. https://doi.org/10.1890/07-0539.1
- Elith, J., Kearney, M., & Phillips, S. (2010). The art of modelling range-shifting species. Methods in Ecology and Evolution, 1(4), 330–342. https://doi.org/10.1111/j.2041-210X.2010.00036.x
- Guisan, A., Petitpierre, B., Broennimann, O., Daehler, C., & Kueffer, C. (2014). Unifying niche shift studies: Insights from biological invasions. Trends in Ecology & Evolution, 29(5), 260–269. https://doi.org/10.1016/j.tree.2014.02.009
- Liu, C., Berry, P. M., Dawson, T. P., & Pearson, R. G. (2005). Selecting thresholds of occurrence in the prediction of species distributions. Ecography, 28(3), 385–393.
- Liu, C., White, M., & Newell, G. (2013). Selecting thresholds for the prediction of species occurrence with presence-only data. Journal of Biogeography, 40(4), 778–789.
- Phillips, S. J., Dudík, M., Elith, J., Graham, C. H., Lehmann, A., Leathwick, J., & Ferrier, S. (2009). Sample selection bias and presence-only distribution models: Implications for background and pseudo-absence data. Ecological Applications, 19(1), 181–197.
- Soberón, J., & Peterson, A. T. (2005). Interpretation of models of fundamental ecological niches and species’ distributional areas. Biodiversity Informatics, 2, 1–10. https://doi.org/10.17161/bi.v2i0.4
5.8 Data Archives & Software
- Fick, S. E., & Hijmans, R. J. (2017). WorldClim 2: New 1-km spatial resolution climate surfaces for global land areas. International Journal of Climatology, 37(12), 4302–4315. https://doi.org/10.1002/joc.5086
- GBIF.org. (01 December 2026). GBIF Occurrence Download (Global Oncosiphon pilulifer). https://doi.org/10.15468/dl.vcnezm
- GBIF.org. (01 December 2026). GBIF Occurrence Download (Southern Africa Asteraceae Target-Group Background). https://doi.org/10.15468/dl.j8w7zw
- GBIF.org. (01 December 2026). GBIF Occurrence Download (SW North America Asteraceae Target-Group Background). https://doi.org/10.15468/dl.98xrhz
- GBIF.org. (01 December 2026). GBIF Occurrence Download (Yuma County Jan–Apr Plantae Survey Effort). https://doi.org/10.15468/dl.nqwakg
- Hijmans, R. J. (2024). terra: Spatial Data Analysis. R package. https://CRAN.R-project.org/package=terra
- Walker, K. (2024). tigris: Load Census TIGER/Line Shapefiles. R package. https://CRAN.R-project.org/package=tigris