Skip to content

Commit

Permalink
Built site for [email protected]: 4c71ede
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 13, 2024
1 parent 49e7da6 commit 2b07dbd
Show file tree
Hide file tree
Showing 28 changed files with 121 additions and 67 deletions.
Binary file added articles/basic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added articles/basic2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added articles/basic3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added articles/choro-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added articles/giscoR-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions articles/mapSpain.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added articles/thematic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 17 additions & 10 deletions articles/working_imagery.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h2 id="static-tiles">Static tiles<a class="anchor" aria-label="anchor" href="#s
<span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html" class="external-link">ggplot</a></span><span class="op">(</span><span class="va">lgn_borders</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">tile_lgn</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggsf.html" class="external-link">geom_sf</a></span><span class="op">(</span>fill <span class="op">=</span> <span class="cn">NA</span>, linewidth <span class="op">=</span> <span class="fl">2</span>, color <span class="op">=</span> <span class="st">"blue"</span><span class="op">)</span></span></code></pre></div>
<p><img src="working_imagery_files/figure-html/static1-1.png" width="100%"></p>
<p><img src="working_imagery_files/figure-html/static1-1.png" alt="Map of the limits of city of Logroño using a tile as a basemap" width="100%"></p>
<div class="section level3">
<h3 id="alpha-value-on-tiles">Alpha value on tiles<a class="anchor" aria-label="anchor" href="#alpha-value-on-tiles"></a>
</h3>
Expand All @@ -145,27 +145,34 @@ <h3 id="alpha-value-on-tiles">Alpha value on tiles<a class="anchor" aria-label="
<span></span>
<span><span class="co"># Example without transparency</span></span>
<span></span>
<span><span class="va">basemap</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"IDErioja.Claro"</span>, zoommin <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span>
<span><span class="va">tile_opaque</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"UnidadesAdm.Limites"</span>, transparent <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span>
<span><span class="va">basemap</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"IDErioja.Claro"</span>,</span>
<span> zoommin <span class="op">=</span> <span class="fl">1</span>,</span>
<span> crop <span class="op">=</span> <span class="cn">TRUE</span>, bbox_expand <span class="op">=</span> <span class="fl">0</span></span>
<span><span class="op">)</span></span>
<span><span class="va">tile_opaque</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"RedTransporte.Carreteras"</span>,</span>
<span> transparent <span class="op">=</span> <span class="cn">FALSE</span>, crop <span class="op">=</span> <span class="cn">TRUE</span>, bbox_expand <span class="op">=</span> <span class="fl">0</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html" class="external-link">ggplot</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">basemap</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">tile_opaque</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggtheme.html" class="external-link">theme_void</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p><img src="working_imagery_files/figure-html/static2-1.png" width="100%"></p>
<p><img src="working_imagery_files/figure-html/static2-1.png" alt="Map of the roads of Autonomous Communities surrouding Madrid" width="100%"></p>
<p>Now let’s check the same code using the
<code>tranparent = TRUE</code> option:</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Example with transparency</span></span>
<span></span>
<span><span class="va">tile_alpha</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"UnidadesAdm.Limites"</span>, transparent <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
<span><span class="va">tile_alpha</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/esp_getTiles.html">esp_getTiles</a></span><span class="op">(</span><span class="va">madrid</span>, <span class="st">"RedTransporte.Carreteras"</span>,</span>
<span> transparent <span class="op">=</span> <span class="cn">TRUE</span>, crop <span class="op">=</span> <span class="cn">TRUE</span>, bbox_expand <span class="op">=</span> <span class="fl">0</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="co"># Same code than above for plotting</span></span>
<span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html" class="external-link">ggplot</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">basemap</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">tile_alpha</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggtheme.html" class="external-link">theme_void</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p><img src="working_imagery_files/figure-html/static_transp-1.png" width="100%"></p>
<p><img src="working_imagery_files/figure-html/static_transp-1.png" alt="Example on how to use alpha value for combining different types of basemaps." width="100%"></p>
<p>Now the two tiles overlaps with the desired alpha value.</p>
</div>
<div class="section level3">
Expand All @@ -183,7 +190,7 @@ <h3 id="masking-tiles">Masking tiles<a class="anchor" aria-label="anchor" href="
<span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html" class="external-link">ggplot</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">basemap</span>, maxcell <span class="op">=</span> <span class="fl">10e6</span><span class="op">)</span> <span class="op">+</span></span>
<span> <span class="fu"><a href="https://dieghernan.github.io/tidyterra/reference/geom_spatraster_rgb.html" class="external-link">geom_spatraster_rgb</a></span><span class="op">(</span>data <span class="op">=</span> <span class="va">masked</span>, maxcell <span class="op">=</span> <span class="fl">10e6</span><span class="op">)</span></span></code></pre></div>
<p><img src="working_imagery_files/figure-html/static3-1.png" width="100%"></p>
<p><img src="working_imagery_files/figure-html/static3-1.png" alt="Example of combining types of tiles by masking to a shapefile." width="100%"></p>
</div>
</div>
<div class="section level2">
Expand Down Expand Up @@ -333,7 +340,7 @@ <h2 id="session-info">Session info<a class="anchor" aria-label="anchor" href="#s
<span><span class="co">#&gt; collate English_United States.utf8</span></span>
<span><span class="co">#&gt; ctype English_United States.utf8</span></span>
<span><span class="co">#&gt; tz UTC</span></span>
<span><span class="co">#&gt; date 2024-11-28</span></span>
<span><span class="co">#&gt; date 2024-12-13</span></span>
<span><span class="co">#&gt; pandoc 3.1.11 @ C:/HOSTED~1/windows/pandoc/31F387~1.11/x64/PANDOC~1.11/ (via rmarkdown)</span></span>
<span><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB; font-weight: bold;">─ Packages ───────────────────────────────────────────────────────────────────</span></span></span>
Expand Down Expand Up @@ -372,7 +379,7 @@ <h2 id="session-info">Session info<a class="anchor" aria-label="anchor" href="#s
<span><span class="co">#&gt; leaflet * 2.2.2 <span style="color: #555555;">2024-03-26</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; lifecycle 1.0.4 <span style="color: #555555;">2023-11-07</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; magrittr 2.0.3 <span style="color: #555555;">2022-03-30</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; mapSpain * <span style="color: #BB00BB; font-weight: bold;">0.9.2.9000</span> <span style="color: #555555;">2024-11-28</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">local</span></span></span>
<span><span class="co">#&gt; mapSpain * <span style="color: #BB00BB; font-weight: bold;">0.9.2.9000</span> <span style="color: #555555;">2024-12-13</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">local</span></span></span>
<span><span class="co">#&gt; munsell 0.5.1 <span style="color: #555555;">2024-04-01</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; pillar 1.9.0 <span style="color: #555555;">2023-03-22</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; pkgconfig 2.0.3 <span style="color: #555555;">2019-09-22</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
Expand Down Expand Up @@ -400,7 +407,7 @@ <h2 id="session-info">Session info<a class="anchor" aria-label="anchor" href="#s
<span><span class="co">#&gt; styler 1.10.3 <span style="color: #555555;">2024-04-07</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; systemfonts 1.1.0 <span style="color: #555555;">2024-05-15</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; terra 1.7-83 <span style="color: #555555;">2024-10-14</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; textshaping 0.4.0 <span style="color: #555555;">2024-05-24</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; textshaping 0.4.1 <span style="color: #555555;">2024-12-06</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; tibble 3.2.1 <span style="color: #555555;">2023-03-20</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; tidyr 1.3.1 <span style="color: #555555;">2024-01-24</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
<span><span class="co">#&gt; tidyselect 1.2.1 <span style="color: #555555;">2024-03-11</span> <span style="color: #555555;">[1]</span> <span style="color: #BB00BB; font-weight: bold;">RSPM</span></span></span>
Expand Down
Binary file modified articles/working_imagery_files/figure-html/static1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified articles/working_imagery_files/figure-html/static2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified articles/working_imagery_files/figure-html/static_transp-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2b07dbd

Please sign in to comment.