---
title: "gallery"
output: html_document
vignette: >
  %\VignetteIndexEntry{Plot Gallery}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

Below are example plots made using this redlist R package. Click on a plot to view the R code on GitHub.  


<div class="gallery-grid">

<!-- 3 -->
<div class="gallery-item">

<a href="https://github.com/stangandaho/redlist/blob/main/plots/scripts/pan_african_chordata_species_distribution.R" target="_blank">
<img src="https://raw.githubusercontent.com/stangandaho/redlist/main/plots/pan_african_chordata_species_distribution.jpeg" alt="Status of Pan-African Chordata Species">
</a>
<div class="gallery-text">
<h6>Author: Stanislas Mahussi Gandaho (2025)</h6>
<h4>Distribution of African Chordate Species by IUCN Red List Category</h4>
<p>Proportional representation of Pan-African chordata species according to their latest IUCN Red List status, emphasizing the relative prevalence of threatened categories.</p>
</div>
</div>

</div>

<!-- 2 -->
<div class="gallery-item">
<a href="https://github.com/stangandaho/redlist/blob/main/plots/scripts/regional_cr_proportion.R" target="_blank">
<img src="https://raw.githubusercontent.com/stangandaho/redlist/main/plots/regional_CR.jpeg" alt="Critically Endangered Distribution">
</a>
<div class="gallery-text">
<h6>Author: Stanislas Mahussi Gandaho (2025)</h6>
<h4>Critically Endangered Distribution</h4>
<p>Regional Distribution of Critically Endangered Species Assessed in the Latest IUCN Red List</p>
</div>
</div>

<!-- 1 -->

<div class="gallery-item">
<a href="https://github.com/stangandaho/redlist/blob/main/plots/scripts/global_cr_assessment_trend.R" target="_blank">
<img src="https://raw.githubusercontent.com/stangandaho/redlist/main/plots/globally_CR_trend.jpeg" alt="Critically Endangered assessment trend">
</a>
<div class="gallery-text">
<h6>Author: Stanislas Mahussi Gandaho (2025)</h6>
<h4>Critically Endangered assessment trend</h4>
<p>Number of species evaluated each year under Critically Endangered category, based on their most recent published assessment</p>
</div>
</div>

</div>

<!-- Style -->

<style>
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* slightly larger plots */
gap: 20px;
}

.gallery-item {
display: flex;
flex-direction: column;
align-items: center;
}

.gallery-item img {
border: 1px solid #ddd;
border-radius: 8px;
width: 300px; /* enlarged image size */
height: auto;
}

.gallery-text {
max-width: 300px; /* matches image width */
text-align: center;
}

.gallery-text p {
text-align: justify;
font-size: 0.9em;
margin: 0;
}

.gallery-text h4,
.gallery-text h6 {
    text-align: left;
}

.gallery-item a {
text-decoration: none;
color: inherit;
}
.gallery-item a:hover {
text-decoration: none;
}


</style>
