<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>achalma edison</title>
    <link>https://achalmed.github.io/</link>
      <atom:link href="https://achalmed.github.io/index.xml" rel="self" type="application/rss+xml" />
    <description>achalma edison</description>
    <generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Sat, 01 Jun 2030 13:00:00 +0000</lastBuildDate>
    <image>
      <url>https://achalmed.github.io/media/icon_hu8bb70b8561c43e196ff53c8758cc3a00_9684572_512x512_fill_lanczos_center_3.png</url>
      <title>achalma edison</title>
      <link>https://achalmed.github.io/</link>
    </image>
    
    <item>
      <title>Example Talk</title>
      <link>https://achalmed.github.io/talk/example-talk/</link>
      <pubDate>Sat, 01 Jun 2030 13:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/talk/example-talk/</guid>
      <description>&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Click on the &lt;strong&gt;Slides&lt;/strong&gt; button above to view the built-in slides feature.
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Slides can be added in a few ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Create&lt;/strong&gt; slides using Wowchemy&amp;rsquo;s &lt;a href=&#34;https://wowchemy.com/docs/managing-content/#create-slides&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;em&gt;Slides&lt;/em&gt;&lt;/a&gt; feature and link using &lt;code&gt;slides&lt;/code&gt; parameter in the front matter of the talk file&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Upload&lt;/strong&gt; an existing slide deck to &lt;code&gt;static/&lt;/code&gt; and link using &lt;code&gt;url_slides&lt;/code&gt; parameter in the front matter of the talk file&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Embed&lt;/strong&gt; your slides (e.g. Google Slides) or presentation video on this page using &lt;a href=&#34;https://wowchemy.com/docs/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;shortcodes&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Further event details, including &lt;a href=&#34;https://wowchemy.com/docs/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;page elements&lt;/a&gt; such as image galleries, can be added to the body of this page.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>seguimos-con-el-padron-continuo</title>
      <link>https://achalmed.github.io/post/seguimos-con-el-padron-continuo/</link>
      <pubDate>Fri, 21 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/seguimos-con-el-padron-continuo/</guid>
      <description>
&lt;script src=&#34;https://achalmed.github.io/post/seguimos-con-el-padron-continuo/index.en_files/clipboard/clipboard.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/seguimos-con-el-padron-continuo/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/seguimos-con-el-padron-continuo/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.js&#34;&gt;&lt;/script&gt;
&lt;script&gt;window.xaringanExtraClipboard(null, {&#34;button&#34;:&#34;&lt;i class=\&#34;fa fa-clipboard\&#34;&gt;&lt;\/i&gt;&#34;,&#34;success&#34;:&#34;&lt;i class=\&#34;fa fa-check\&#34; style=\&#34;color: #90BE6D\&#34;&gt;&lt;\/i&gt;&#34;,&#34;error&#34;:&#34;Press Ctrl+C to Copy&#34;})&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/seguimos-con-el-padron-continuo/index.en_files/font-awesome/css/all.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;https://achalmed.github.io/post/seguimos-con-el-padron-continuo/index.en_files/font-awesome/css/v4-shims.css&#34; rel=&#34;stylesheet&#34; /&gt;


&lt;div id=&#34;intromotivación&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Intro/motivación&lt;/h2&gt;
&lt;p&gt;Llevo unos días, desde que empece el blog, jugando y trasteando con datos del Padrón continuo, y todo indica que seguiré unos días más, quiero procesar 2/3 tablas más y así poder hacer análisis tan importantes como ver que municipios/provincias tienen más mujeres que hombres o ver que municipios/provincias son más “cerrados”, en el sentido de que un mayor porcentaje de su población vive en el mismo municipio en el que nació. Seguramente también veré que municipios/regiones tienen una población más joven.&lt;/p&gt;
&lt;p&gt;Parece un poco de obsesión por datos de población, igual tenía que haber sido demógrafo, pero es que en clase suelo utilizar este tipo de datos para enseñar R. Son datos sencillos de entender y una forma fácil de empezar con R, así que, ahora que tengo más o menos claro qué es y qué datos hay en el Padrón continuo, voy a documentarlo para poder usarlo el año que viene.&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;padrón-continuo&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Padrón continuo&lt;/h2&gt;
&lt;p&gt;En España, cada municipio tiene un registro conocido como el &lt;strong&gt;Padrón municipal de habitantes&lt;/strong&gt; donde constan los vecinos del municipio. Cuando una persona se inscribe en el padrón de su municipio debe aportar obligatoriamente estos datos: nombre y apellidos, género, domicilio habitual, nacionalidad, lugar y fecha de nacimiento, DNI o similar para no nacionales. El Padrón es un registro importante ya que, por ejemplo, a partir de él se confeccionan los censos electorales y las cifras oficiales de población.&lt;/p&gt;
&lt;p&gt;Hasta el 1 de mayo de 1996, el padrón municipal de España se renovaba cada cinco años. Desde entonces se transforma en padrón continuo. Los ayuntamientos deben remitir mensualmente al INE los cambios en el registro de habitantes; es decir, el INE coordina los registros de todos los municipios. A partir de estos datos, el INE confecciona la &lt;strong&gt;Estadística del Padrón continuo&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Dentro de esta operación estadística el INE publica dos conjuntos de datos:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Los &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177012&amp;amp;menu=resultados&amp;amp;secc=1254736195462&amp;amp;idp=1254734710990#!tabs-1254736195462&#34;&gt;microdatos&lt;/a&gt; del Padrón Continuo. El INE provee un fichero .zip por año. Dentro del fichero .zip están los microdatos en varios formatos, incluyendo también un script para transformar los datos a formato R. Por motivos de secreto estadístico se blanquea el municipio de residencia y nacimiento en los municipios de menos de 10.000 habitantes. Es decir, con los microdatos no podría saber cuantos habitantes tiene mi pueblo, tuve que irme al Nomenclator, pero podría ver cosas como ¿cuantas personas nacidas en Madrid están viviendo actualmente en Teruel?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Un &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177012&amp;amp;menu=resultados&amp;amp;secc=1254736195462&amp;amp;idp=1254734710990#!tabs-1254736195461&#34;&gt;conjunto de tablas&lt;/a&gt; con distintos niveles de desagregación y horizontes temporales con parte de la información que aparecen en los microdatos.&lt;a href=&#34;#fn1&#34; class=&#34;footnote-ref&#34; id=&#34;fnref1&#34;&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div id=&#34;más-estadísticas-relacionadas-con-el-padrón&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Más estadísticas relacionadas con el Padrón&lt;/h2&gt;
&lt;p&gt;Además, partiendo de los datos del Padrón continuo, el INE ofrece una &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/categoria.htm?c=Estadistica_P&amp;amp;cid=1254734710984&#34;&gt;serie de estadísticas&lt;/a&gt; como:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Cifras oficiales de población de los municipios españoles&lt;a href=&#34;#fn2&#34; class=&#34;footnote-ref&#34; id=&#34;fnref2&#34;&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Nomenclátor&lt;a href=&#34;#fn3&#34; class=&#34;footnote-ref&#34; id=&#34;fnref3&#34;&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Relación de municipios y sus códigos por provincias &lt;a href=&#34;#fn4&#34; class=&#34;footnote-ref&#34; id=&#34;fnref4&#34;&gt;&lt;sup&gt;4&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Estadística de variaciones residenciales&lt;a href=&#34;#fn5&#34; class=&#34;footnote-ref&#34; id=&#34;fnref5&#34;&gt;&lt;sup&gt;5&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Estadística del Padrón de españoles residentes en el extranjero&lt;a href=&#34;#fn6&#34; class=&#34;footnote-ref&#34; id=&#34;fnref6&#34;&gt;&lt;sup&gt;6&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Apellidos y nombres más frecuentes&lt;a href=&#34;#fn7&#34; class=&#34;footnote-ref&#34; id=&#34;fnref7&#34;&gt;&lt;sup&gt;7&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div id=&#34;más-detalles-sobre-las-tablas-del-padrón-continuo&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Más detalles sobre las tablas del Padrón continuo&lt;/h2&gt;
&lt;p&gt;Bueno, volvamos a la &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177012&amp;amp;menu=ultiDatos&amp;amp;idp=1254734710990&#34;&gt;Estadística del Padrón continuo.&lt;/a&gt;. Ya he comentado que el INE ofrece un conjunto amplio de tablas con datos parciales del Padrón para distintos niveles de desagregación y horizontes temporales. Las tablas que más me interesan son las tablas con información a nivel municipal, y censal. Para clase y el blog procesaré los datos con detalle municipal.&lt;/p&gt;
&lt;p&gt;Hay seis tablas. Veámoslas:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/tablas_padron_municipios.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;El INE ofrece cada una de estas 6 tablas en un fichero para el periodo 2015-2020 y un fichero individual para años anteriores.&lt;/p&gt;
&lt;p&gt;De las 6 tablas, procesaré la tercera, la quinta y la sexta. Con los datos de la quinta tabla veré que municipios/provincias son más cerradas, en el sentido de que un mayor porcentaje de su población vive en el mismo municipio en el que nació. Con los datos de la sexta tabla, seguramente también veré que municipios/regiones tienen una población más joven y/o más centenarios. Todo jugar. Con los datos de cualquiera de las tablas puedo replicar uno de los análisis que ya hicimos en clase: ver en que municipios/provincias hay más mujeres que hombres. Ya lo hicimos en clase el curso pasado y salía algún resultado curioso.&lt;/p&gt;
&lt;p&gt;Para las secciones censales hay disponibles también seis tablas. Son muy parecidas a las que hay para los municipios, pero se centran más en la nacionalidad, además cada año tiene su propio fichero y sólo están disponibles en formato PC-Axis, mientras que las de municipios se pueden descargar en varios formatos.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/tablas_padron_secciones.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;footnotes footnotes-end-of-document&#34;&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id=&#34;fn1&#34;&gt;&lt;p&gt;Más abajo hablo de las tablas que me interesan y que utilizaré en varios posts más.&lt;a href=&#34;#fnref1&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn2&#34;&gt;&lt;p&gt;Estos son los datos que he utilizado en el segundo y cuarto post, donde veía en que municipios y provincias había crecido más la población durante el periodo 2000-2020&lt;a href=&#34;#fnref2&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn3&#34;&gt;&lt;p&gt;Utilice estos datos en el tercer post cuando puede ver la evolución habitantes de mi pueblo&lt;a href=&#34;#fnref3&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn4&#34;&gt;&lt;p&gt;Utilice estos datos en el primer post, cuando descubrimos que existía Aliaga del Lagarto. Lo siento Pili!!! 😇 🤣 🦎🦎 🤣&lt;a href=&#34;#fnref4&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn5&#34;&gt;&lt;p&gt;Por si algún día quiero saber cuantas personas nacidas en Burgos residen actualmente en Teruel&lt;a href=&#34;#fnref5&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn6&#34;&gt;&lt;p&gt;Seguro que le echo un vistazo cuando salgan los nuevos datos el 18 de marzo&lt;a href=&#34;#fnref6&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn7&#34;&gt;&lt;p&gt;En uno de los trabajos que los estudiantes elaboraron este curso, utilizaron estos datos. El trabajo está &lt;a href=&#34;https://dasdfg098.github.io/trabajo_BigData_equipo/&#34;&gt;aquí&lt;/a&gt; y el repo &lt;a href=&#34;https://github.com/dasdfg098/trabajo_BigData_equipo&#34;&gt;aquí&lt;/a&gt;&lt;a href=&#34;#fnref7&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>Wilson y crecimiento</title>
      <link>https://achalmed.github.io/post/wilson-y-crecimiento/</link>
      <pubDate>Fri, 21 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/wilson-y-crecimiento/</guid>
      <description>


&lt;div id=&#34;hola-mundo&#34; class=&#34;section level1&#34;&gt;
&lt;h1&gt;Hola mundo&lt;/h1&gt;
&lt;p&gt;que tal&lt;/p&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>crecimiento-de-la-poblacion-por-provincias-2000-2020</title>
      <link>https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/</link>
      <pubDate>Thu, 20 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/</guid>
      <description>
&lt;script src=&#34;https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/index.en_files/clipboard/clipboard.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.js&#34;&gt;&lt;/script&gt;
&lt;script&gt;window.xaringanExtraClipboard(null, {&#34;button&#34;:&#34;&lt;i class=\&#34;fa fa-clipboard\&#34;&gt;&lt;\/i&gt;&#34;,&#34;success&#34;:&#34;&lt;i class=\&#34;fa fa-check\&#34; style=\&#34;color: #90BE6D\&#34;&gt;&lt;\/i&gt;&#34;,&#34;error&#34;:&#34;Press Ctrl+C to Copy&#34;})&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/index.en_files/font-awesome/css/all.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;https://achalmed.github.io/post/crecimiento-de-la-poblacion-por-provincias-2000-2020/index.en_files/font-awesome/css/v4-shims.css&#34; rel=&#34;stylesheet&#34; /&gt;


&lt;div id=&#34;intro&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Intro&lt;/h2&gt;
&lt;p&gt;En el &lt;a href=&#34;https://perezp44.github.io/pjperez.web/posts/2021-02-10-poblacion-municipal/&#34;&gt;segundo post&lt;/a&gt; realicé una visualización, un mapa, una coropleta, con el crecimiento de la población municipal para el periodo 2000-2020. En este post voy a repetir el análisis pero para la población provincial. En realidad sólo tengo cambiar unas pocas lineas de mi anterior análisis, pero a veces las cosas no son tan sencillas y te acabas liando. Al final he hecho &lt;strong&gt;3 visualizaciones&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;datos&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Datos&lt;/h2&gt;
&lt;p&gt;Los datos ya los tenía arreglados. Lo hice en el segundo post. Ahora sólo hay que cambiar unas pocas lineas para obtener, en lugar de los municipales, los crecimientos de población por provincias.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;#- quiero hacer un mapa con el crecimiento de la población (por provincias) en el periodo 2000-2020
library(tidyverse)

#- datos de población
pob_2000_2020 &amp;lt;- readr::read_rds(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/INE/pob_mun/ine_pob_mun_1996_2020.rds&amp;quot;)

#- rtdos (crec. poblacion en España)
pob_esp &amp;lt;- pob_2000_2020 %&amp;gt;% 
  filter(year %in% c(2000, 2020)) %&amp;gt;% 
  select(year, poblacion, values) %&amp;gt;% 
  group_by(year, poblacion) %&amp;gt;% 
  summarise(habitantes = sum(values)) %&amp;gt;% 
  group_by(poblacion) %&amp;gt;% 
  mutate(crec_abs = habitantes - lag(habitantes)) %&amp;gt;% 
  mutate(crec_percent = crec_abs /lag(habitantes)) %&amp;gt;% ungroup()

#- resultados pob provincial
pob_prov &amp;lt;- pob_2000_2020 %&amp;gt;% 
  filter(year %in% c(2000, 2020)) %&amp;gt;% 
  filter(poblacion == &amp;quot;Total&amp;quot;) %&amp;gt;% 
  group_by(ine_prov, ine_prov.n, year) %&amp;gt;% 
  mutate(habitantes = sum(values)) %&amp;gt;% #- hago mutate y no summarise xq quiero guardar CCAA
  select(ine_prov, ine_prov.n, ine_ccaa, ine_ccaa.n, year, habitantes) %&amp;gt;%
  distinct() %&amp;gt;% 
  pivot_wider(names_from = c(&amp;quot;year&amp;quot;), values_from = c(&amp;quot;habitantes&amp;quot;)) %&amp;gt;% 
  mutate(crec_2020_2000 = `2020`- `2000`) %&amp;gt;% 
  mutate(crec_porcentual = (`2020`- `2000`) / `2000` *100) %&amp;gt;% 
  arrange(desc(crec_porcentual)) %&amp;gt;% ungroup() %&amp;gt;% 
  mutate(crec_porcentual.n = paste0(round(crec_porcentual, digits = 1), &amp;quot;%&amp;quot;)) %&amp;gt;% 
  mutate(crec_porcentual_d = 
           cut(crec_porcentual, 
               breaks=c(-Inf, 0.0, 10, pob_esp$crec_percent[6]*100, 30, Inf), 
               labels=c(&amp;quot;Negativo&amp;quot;,&amp;quot;[ 0% - 10%)&amp;quot;,&amp;quot;[10% - media)&amp;quot;, &amp;quot;[media, 30%)&amp;quot;, &amp;quot; &amp;gt;30%&amp;quot;)))&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id=&#34;mapa-coropleta&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Mapa: coropleta&lt;/h2&gt;
&lt;p&gt;Después cargar las geometrías, fusionar con los datos de crecimiento de población y hacer el mapa. Me costó un poquito el otro día para el segundo post, hoy easy-peasy.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(sf)
# datos geo originales de LAU2 (pero con Canarias shifted) ----
geo_prov &amp;lt;- readr::read_rds(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/geo_datos_mios/geo_prov_2020_LAU2_canarias.rds&amp;quot;)
# Morocco geometría
geo_morocco &amp;lt;- rnaturalearth::ne_countries(scale = &amp;quot;medium&amp;quot;, returnclass = &amp;quot;sf&amp;quot;) %&amp;gt;% 
  dplyr::filter(sovereignt %in% c(&amp;quot;Morocco&amp;quot;)) %&amp;gt;% select(sovereignt)
#- fusionar geometria y crec.
my_geo &amp;lt;- left_join(my_geo, pob_prov) &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/map_crec_pob_provincial.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;El gráfico corrobora las tendencias mostradas en el &lt;a href=&#34;https://perezp44.github.io/pjperez.web/posts/2021-02-10-poblacion-municipal/&#34;&gt;segundo post&lt;/a&gt;: las provincias que crecen por encima de la media española se concentran a lo largo de la costa mediterránea, en Baleares y Canarias, Navarra, la Rioja, así como en Madrid y su área de influencia. Por contra, el interior de Galicia (Lugo y Orense) y las provincias más occidentales de Castilla y León presentan los decrecimientos de población provinciales más intensos.&lt;/p&gt;
&lt;p&gt;Por supuesto, estos resultados solo nos ofrecen alguna pista parcial sobre la dinámica de la población. Son una foto fija de todo el periodo. Por ejemplo, Zamora es la provincia con una mayor descenso, un 16,2%, pero ¿ha sido este descenso un fenómeno sostenido en el tiempo o es algo reciente?&lt;/p&gt;
&lt;p&gt;La verdad es que la mejor opción para visualizar los datos sería hacer un &lt;a href=&#34;https://shiny.rstudio.com/&#34;&gt;shiny&lt;/a&gt;, y que las personas interesadas tuviesen la libertad de analizar los datos que les interesasen, pero, de momento, lo dejo estar. Ya haré algún shiny más adelante, cuando consiga tunear uno a mi gusto para que sea medio nice-looking. De momento, aquí, voy a explorar otros 2 tipos de visualizaciones: &lt;a href=&#34;https://www.data-to-viz.com/caveat/spaghetti.html&#34;&gt;spaghetti plots&lt;/a&gt; y &lt;a href=&#34;https://www.r-graph-gallery.com/heatmap&#34;&gt;heatmaps.&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;spaghetti-plot&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Spaghetti plot&lt;/h2&gt;
&lt;p&gt;Para ver la evolución en el tiempo de una variable, como es nuestro caso, lo más adecuado es una gráfica de linea temporal, pero es que son 52 provincias, así que, a no ser que utilicemos facets u otra técnica, nos va a salir lo que se suele conocer como un spaghetti plot. Vamos a verlo.&lt;/p&gt;
&lt;p&gt;Los datos ya están medio procesados pero, para evitar el problema de las escalas, voy a utilizar números índices en la visualización.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/spaguetti_crec_pob_provincial.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;Dos conclusiones. Primera, sí, mejor un shiny y así puedes seleccionar exactamente lo que quieres visualizar. Ya lo haré. Segunda: que hacer un buen gráfico es muy costoso. Nunca se acaba, ni lo dejas como te gustaría!!&lt;/p&gt;
&lt;p&gt;Como veis no comento nada de la evolución de las series. Es que ya dije que los posts los escribo para mi y principalmente para aprender a programar en R. El objetivo era hacer el gráfico, no analizar que pasó con la población a nivel provincial.&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;heatmap&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Heatmap&lt;/h2&gt;
&lt;p&gt;Nunca había hecho un heatmap, así que ya tocaba hacer uno. Hacer heatmaps con &lt;code&gt;ggplot2&lt;/code&gt; es sencillo, solo hay que usar &lt;code&gt;geom_tile()&lt;/code&gt; y prácticamente sale sólo, como por arte de magia; además, hay, como mínimo, 2 paquetes específicos para heatmaps: &lt;a href=&#34;https://jbengler.github.io/tidyheatmaps/articles/tidyheatmap.html&#34;&gt;&lt;code&gt;tidyheatmaps&lt;/code&gt;&lt;/a&gt; y &lt;a href=&#34;https://rlbarter.github.io/superheat/index.html&#34;&gt;&lt;code&gt;superheat&lt;/code&gt;&lt;/a&gt;. Para aprender, utilicé &lt;a href=&#34;https://www.royfrancis.com/a-guide-to-elegant-tiled-heatmaps-in-r-2019/&#34;&gt;este post&lt;/a&gt; y &lt;a href=&#34;https://rkabacoff.github.io/datavis/Other.html#heatmaps&#34;&gt;este bookdown&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Probé diversas cosas y al final me quedo con 2. La verdad es que es complicado hacer un “buen” heatmap. Yo lo he intentado y el resultado ha quedado un poco meh!, y eso que me he apoyado bastante en la &lt;a href=&#34;https://jbengler.github.io/tidyheatmaps/articles/tidyheatmap.html&#34;&gt;vignette de &lt;code&gt;tidyheatmaps&lt;/code&gt;&lt;/a&gt; y en &lt;a href=&#34;https://www.royfrancis.com/a-guide-to-elegant-tiled-heatmaps-in-r-2019/&#34;&gt;este post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;El primero está hecho con el paquete &lt;code&gt;tidyheatmaps&lt;/code&gt;. Es muy fácil hacer el heatmap,la vignette está muy bien explicada. El inconveniente es que al final no es un ggplot, por lo que no es fácil tunearlo a tu gusto fuera de las opciones que ha implementado el &lt;a href=&#34;mailto:desarrollad@r&#34; class=&#34;email&#34;&gt;desarrollad@r&lt;/a&gt;. Como se ve, en el gráfico hay mucha información resulta, en cierta manera, complicado sacar conclusiones sin utilizar información adicional&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/heatmap_01.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;El segundo está hecho con &lt;code&gt;geom_tile()&lt;/code&gt; por lo que se pueden usar todas las opciones de configuración de ggplot2. El resultado visual es muy diferente porque en este gráfico no he mostrado tanta información: sólo he mostrado una variable dicotómica. En concreto se muestra, para cada año, si el crecimiento de la población en cada provincia fue superior al del conjunto de España o por contra fue menor.&lt;/p&gt;
&lt;p&gt;Se aprecia que, hay provincias, como Murcia o Illes Balears, que en general han crecido durante todo el periodo por encima de lo que lo ha hecho la población española y otras provincias, como Palencia, León o Burgos, que siempre lo han hecho por debajo del agregado español.&lt;/p&gt;
&lt;p&gt;No soy especialista en el tema ni demógrafo pero se aprecia, principalmente en el spaghetti plot, que, evidentemente hay dinámicas propias en las diferentes provincias españolas, con un grupo de provincias que presentan perdidas de población continuadas desde al menos 2000, pero que seguramente comenzasen en la década de los 60, y otro grupo de provincias más dinámicas y que presentan ganancias continuadas de población. Sin embargo, como no podría ser de otra forma, la dinámica de la población provincial también responde a patrones comunes a la economía española como se aprecia en el hecho de que la crisis de 2010, fruto de la crisis financiera de 2008, acabo teniendo un efecto importante en la dinámica de la población a través de sus efectos en la inmigración, llegando incluso a materializarse en un retorno de inmigrantes a sus países de origen, lo que dado las bajas tasas de natalidad en España, se tradujo en reducciones de población a nivel agregado, así como en la mayoría de provincias, incluidas las más dinámicas.&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/heatmap_02.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;Bueno!!! Me reafirmo, conforme aprendo más sobre &lt;code&gt;ggplot2&lt;/code&gt; más me gusta hacer gráficos pero … es bastante complicado dejarlos bien acabados y desde luego lleva tiempo, así que ya vale, creo que los próximos posts aprovecharé mi plantilla para hacer coropletas que esa sí la he dejado bastante niquelada.&lt;/p&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>Nomenclator-municipio-pueblo-o-entidad</title>
      <link>https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/</link>
      <pubDate>Thu, 20 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/</guid>
      <description>
&lt;script src=&#34;https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/index.en_files/clipboard/clipboard.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.js&#34;&gt;&lt;/script&gt;
&lt;script&gt;window.xaringanExtraClipboard(null, {&#34;button&#34;:&#34;&lt;i class=\&#34;fa fa-clipboard\&#34;&gt;&lt;\/i&gt;&#34;,&#34;success&#34;:&#34;&lt;i class=\&#34;fa fa-check\&#34; style=\&#34;color: #90BE6D\&#34;&gt;&lt;\/i&gt;&#34;,&#34;error&#34;:&#34;Press Ctrl+C to Copy&#34;})&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/index.en_files/font-awesome/css/all.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;https://achalmed.github.io/post/nomenclator-municipio-pueblo-o-entidad/index.en_files/font-awesome/css/v4-shims.css&#34; rel=&#34;stylesheet&#34; /&gt;


&lt;div id=&#34;nomenclator-del-ine&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Nomenclator del INE&lt;/h2&gt;
&lt;p&gt;En este post voy a hablar de otra operación estadística del INE: el Nomenclator. ¿Que por qué me interesa el Nomenclator? Pues porque quiero saber cuantos habitantes tiene mi pueblo. Mi pueblo es &lt;a href=&#34;https://es.wikipedia.org/wiki/Pancrudo&#34;&gt;Pancrudo&lt;/a&gt;, pero en realidad la palabra pueblo, que mucha gente emplea para referirse a una localidad con pocos habitantes, es según la &lt;a href=&#34;https://es.wikipedia.org/wiki/Pueblo&#34;&gt;Wikipedia&lt;/a&gt;, un término ambiguo.&lt;/p&gt;
&lt;p&gt;El INE no ofrece datos ni para pueblos ni para localidades, el INE ofrece datos de población para &lt;a href=&#34;https://es.wikipedia.org/wiki/Municipio&#34;&gt;municipios&lt;/a&gt;. Perfecto, porque en el post anterior arreglaste los datos de población para municipios. Es verdad, pero a pesar de que sí que existe el municipio de Pancrudo, mi pueblo, no es un municipio. Trato de explicarlo.&lt;/p&gt;
&lt;p&gt;Existe el municipio de &lt;a href=&#34;https://es.wikipedia.org/wiki/Pancrudo&#34;&gt;Pancrudo&lt;/a&gt;, sí, pero está compuesto de 4 localidades o pueblos: &lt;a href=&#34;https://es.wikipedia.org/wiki/Cervera_del_Rinc%C3%B3n&#34;&gt;Cervera del Rincón&lt;/a&gt;, &lt;a href=&#34;https://es.wikipedia.org/wiki/Cuevas_de_Portalrubio&#34;&gt;Cuevas de Portalrubio&lt;/a&gt;, &lt;a href=&#34;https://es.wikipedia.org/wiki/Portalrubio&#34;&gt;Portalrubio&lt;/a&gt; y Pancrudo. Es decir, mi pueblo (Pancrudo) es una de las 4 localidades o pueblos del municipio también llamado Pancrudo. Un poco de lío!!&lt;/p&gt;
&lt;p&gt;Por lo tanto, si quiero saber cuantos habitantes tiene mi pueblo no me vale con los datos que utilicé en el post anterior, tengo que ir al Nomenclator del INE. Como podemos leer &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177010&amp;amp;menu=resultados&amp;amp;idp=1254734710990&#34;&gt;aquí&lt;/a&gt;, El Nomenclátor&lt;a href=&#34;#fn1&#34; class=&#34;footnote-ref&#34; id=&#34;fnref1&#34;&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;/a&gt; contiene la relación detallada de las entidades y núcleos de población existentes a 1 de enero en cada municipio, así como su población. Perfecto, parece que en el Nomenclator sí que aparecerá la población de mi pueblo. En realidad el Nomenclator no utiliza el término pueblo sino que para el Nomenclator mi pueblo será una entidad o núcleo de población. Bueno eso me da igual, vamos a por los datos.&lt;/p&gt;
&lt;p&gt;La verdad es que me complico las cosas, con lo fácil que es buscar en El INE los habitantes de un &lt;strong&gt;municipio&lt;/strong&gt; en los diferentes censos. Por ejemplo, &lt;a href=&#34;https://www.ine.es/intercensal/intercensal.do?search=1&amp;amp;error1=Debe+introducir+un+nombre+de+municipio.&amp;amp;error2=Debe+introducir+al+menos+3+caracteres.&amp;amp;cmbTipoBusq=0&amp;amp;textoMunicipio=Pancrudo&amp;amp;btnBuscarDenom=Consultar+selecci%C3%B3n&#34;&gt;aquí&lt;/a&gt; está la búsqueda para el &lt;strong&gt;municipio&lt;/strong&gt; de Pancrudo. En las notas al pie de la tabla nos dice que en el censo de 1970 el municipio de Pancrudo ya incorpora a Cervera y Cuevas, y que en el censo de 1981 se incorpora Portalrubio. Viendo los datos de la tabla se aprecia que, al menos para Pancrudo, el fenómeno de la progresiva despoblación de la España rural parece empezar en los 60. Los demógrafos dirán!!&lt;/p&gt;
&lt;div id=&#34;los-datos&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Los datos&lt;/h3&gt;
&lt;p&gt;Los datos del Nomenclator están &lt;a href=&#34;https://www.ine.es/nomen2/ficheros.do&#34;&gt;aquí&lt;/a&gt;. El INE ofrece un fichero .zip para cada año desde 2010 a 2020. Dentro del .zip hay 2 ficheros&lt;a href=&#34;#fn2&#34; class=&#34;footnote-ref&#34; id=&#34;fnref2&#34;&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt; con la misma información: el código, el nombre y la población total y por genero de cada entidad o núcleo de población.&lt;/p&gt;
&lt;p&gt;En el diseño de registro del Nomenclator puede verse que el código de las entidades tiene 11 dígitos: los 2 primeros se corresponden con el código provincial y los 3 siguientes con el código del municipio; es decir, los 5 primeros dígitos identifican a que municipio pertenece cada entidad.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/nomenclator_ine_disenyo_registro.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;Se aprecia que, además de &lt;a href=&#34;https://es.wikipedia.org/wiki/Municipio&#34;&gt;municipios&lt;/a&gt;, en el Nomenclator hay &lt;a href=&#34;https://es.wikipedia.org/wiki/Entidad_colectiva_de_poblaci%C3%B3n&#34;&gt;entidades colectivas&lt;/a&gt;, &lt;a href=&#34;https://es.wikipedia.org/wiki/Entidad_singular_de_poblaci%C3%B3n&#34;&gt;entidades singulares&lt;/a&gt;, &lt;a href=&#34;https://es.wikipedia.org/wiki/N%C3%BAcleo_de_poblaci%C3%B3n&#34;&gt;nucleos&lt;/a&gt; y &lt;a href=&#34;https://es.wikipedia.org/wiki/Diseminado&#34;&gt;diseminados&lt;/a&gt;. Como veis no es que sea fácil-fácil entender los pormenores de estas categorías. Como ejemplo, claro y diáfano al menos para mi: mi pueblo, Pancrudo, es una entidad singular y un núcleo que pertenece al municipio de Pancrudo. Portalrubio, otro pueblo, es otra entidad singular y núcleo del municipio de Pancrudo. Lo mismo ocurre para Cervera del Rincón y Cuevas de Portalrubio. En el municipio de Pancrudo no hay entidades colectivas ni diseminados.&lt;/p&gt;
&lt;p&gt;La verdad es que el procesado de los 11 ficheros me costó un poquito: menos mal que medio me gusta y me “relaja”.&lt;a href=&#34;#fn3&#34; class=&#34;footnote-ref&#34; id=&#34;fnref3&#34;&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;habitantes-de-mi-pueblo&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Habitantes de mi pueblo&lt;/h3&gt;
&lt;p&gt;Ahora que he procesado los datos del Nomenclator, ya puedo hacer un gráfico con la evolución de los habitantes de mi pueblo y ya que me pongo la hago de los cuatro pueblos del municipio de Pancrudo.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(tidyverse)
nomenclator &amp;lt;- readr::read_csv(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/INE/nomenclator/ine_nomenclator_2010_2020.csv&amp;quot;)

pancrudo &amp;lt;- nomenclator %&amp;gt;% filter(ine_muni.n == &amp;quot;Pancrudo&amp;quot;) %&amp;gt;% 
  filter(tipo == &amp;quot;Entidad singular&amp;quot;) %&amp;gt;% 
  filter(poblacion == &amp;quot;Total&amp;quot;) %&amp;gt;% 
  mutate(year1 = as.character(year)) %&amp;gt;% 
  mutate(name = as_factor(case_when(
    name == &amp;quot;PANCRUDO&amp;quot; ~ &amp;quot;Pancrudo&amp;quot;,
    name %in% c(&amp;quot;CERVERA DEL RINCON&amp;quot;, &amp;quot;CERVERA DEL RINCÓN&amp;quot;) ~ &amp;quot;Cervera del Rincón&amp;quot;,
    name == &amp;quot;PORTALRUBIO&amp;quot; ~ &amp;quot;Portalrubio&amp;quot;,
    name == &amp;quot;CUEVAS DE PORTALRUBIO&amp;quot; ~ &amp;quot;Cuevas de Portalrubio&amp;quot;))) %&amp;gt;% 
  mutate(name = fct_relevel(name, c(&amp;quot;Pancrudo&amp;quot;, &amp;quot;Portalrubio&amp;quot;, &amp;quot;Cervera del Rincón&amp;quot;, &amp;quot;Cuevas de Portalrubio&amp;quot;)))

pancrudo_2020 &amp;lt;- pancrudo %&amp;gt;% filter(year == 2020) %&amp;gt;% select(year, year1, name, values)

p &amp;lt;- ggplot() + 
  #geom_point(data = pancrudo, aes(x = year1, y = values, color = name)) +
  geom_line(data = pancrudo, aes(x = year1, y = values, color = name, group = name), size = 1.5) +
  geom_label(data = pancrudo, aes(x = year1, y = values, label = values)) +
  #geom_text(data = pancrudo_2020, aes( x = year1, y = values,label = name), nudge_x = 1, check_overlap = TRUE, hjust = 0.5) +
  scale_color_manual(name = NULL,  values = c(&amp;quot;blueviolet&amp;quot;, &amp;quot;deeppink2&amp;quot;, &amp;quot;cadetblue4&amp;quot;, &amp;quot;brown1&amp;quot;)) +
  labs(title = &amp;quot;Evolución de la población de los 4 pueblos del municipio de Pancrudo&amp;quot;,
       subtitle = &amp;quot;&amp;quot;,
       x = NULL,
       y = &amp;quot;Habitantes&amp;quot;,
       caption = &amp;quot;Datos de población del Nomenclator del INE.Visualización: @pjpv4444&amp;quot;, 
       color = NULL) +
  theme(plot.title = element_text(size = 16, face = &amp;quot;bold&amp;quot;),
        legend.position = &amp;quot;none&amp;quot;) +
  annotate(geom = &amp;quot;text&amp;quot;, x = 11.75, y = 81.2, label =&amp;quot;Pancrudo&amp;quot;, color = &amp;quot;black&amp;quot;, size = 5) +
  annotate(geom = &amp;quot;text&amp;quot;, x = 11.75, y = 18.5, label =&amp;quot;Portalrubio&amp;quot;, color = &amp;quot;black&amp;quot;, size = 5) +
  annotate(geom = &amp;quot;text&amp;quot;, x = 12.135, y = 13.2, label =&amp;quot;Cervera del Rincón&amp;quot;, color = &amp;quot;black&amp;quot;, size = 5) +
  annotate(geom = &amp;quot;text&amp;quot;, x = 12.24, y = 6.8, label =&amp;quot;Cuevas de Portalrubio&amp;quot;, color = &amp;quot;black&amp;quot;, size = 5) +
  scale_x_discrete(expand = expansion(mult = c(0.04, .225))) +
  theme_minimal() + theme(plot.title = element_text(size = 16, face = &amp;quot;bold&amp;quot;),
    legend.position = &amp;quot;none&amp;quot;,
    text = element_text(family = &amp;quot;Ubuntu Regular&amp;quot;, color = &amp;quot;#22211d&amp;quot;),
    plot.background = element_rect(fill = &amp;quot;ghostwhite&amp;quot;, color = NA),
    plot.caption = element_text(hjust = 0.05))
p
#- para guardar el plot
ggsave(p, filename = here::here(&amp;quot;evolucion_poblacion_pancrudo.png&amp;quot;),
       device = &amp;quot;png&amp;quot;, width = 32, height = 20, units = &amp;quot;cm&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/evolucion_poblacion_pancrudo.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;Como veis Pancrudo es pequeñito, pero es la capital del municipio. En 2015 llegamos a un mínimo de 66 habitantes pero parece que recuperamos. Cuevas, Cervera y P️ortalrubio también intentan mantenerse. Ánimo!! 💪🏿⬆&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;algunas-curiosidades&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Algunas curiosidades&lt;/h3&gt;
&lt;p&gt;Ya que tengo los datos del Nomenclator operativos me ha entrado curiosidad por conocer algunas cosas y ver si por fin entendía lo que es una entidad colectiva, una entidad singular, un núcleo y un diseminado. Al final medio lo entendí usando los datos de Pancrudo. Pancrudo es un municipio compuesto por 4 entidades singulares, pero además esas 4 entidades singulares son núcleos, no son diseminados. Lo que no sé seguro es si una entidad singular puede tener un núcleo y además uno o varios diseminados, creo que sí, pero ya me cansé de los datos.&lt;/p&gt;
&lt;p&gt;Curiosidades:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;¿Qué municipio tiene más entidades colectivas, singulares, núcleos y diseminados?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pues resulta que en 2020 el municipio con más &lt;a href=&#34;https://es.wikipedia.org/wiki/Entidad_colectiva_de_poblaci%C3%B3n&#34;&gt;entidades colectivas&lt;/a&gt; era Lugo con 54. En cuanto a entidades singulares gana Mieres, en Asturias, con 520, &lt;a href=&#34;#fn4&#34; class=&#34;footnote-ref&#34; id=&#34;fnref4&#34;&gt;&lt;sup&gt;4&lt;/sup&gt;&lt;/a&gt;, y 140 de ellos con cero habitantes. Ahora si que no entiendo nada!! Núcleos: en núcleos, Vigo en cabeza con 292. Por último diseminados: Villaba, municipio de Lugo, con 446. Parece increíble, pero es real!!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Quería ver si estos datos sirven para enlazar series de población de municipios que han sufrido segregaciones. La respuesta es sí. Por ejemplo, en el año 2019, El Palmar de Troya se segregó del municipio de Utrera. Veámoslo en un gráfico:&lt;a href=&#34;#fn5&#34; class=&#34;footnote-ref&#34; id=&#34;fnref5&#34;&gt;&lt;sup&gt;5&lt;/sup&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;footnotes footnotes-end-of-document&#34;&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id=&#34;fn1&#34;&gt;&lt;p&gt;O Población del Padrón Continuo por unidad poblacional&lt;a href=&#34;#fnref1&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn2&#34;&gt;&lt;p&gt;Un fichero .txt y otro .xlsx&lt;a href=&#34;#fnref2&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn3&#34;&gt;&lt;p&gt;Yo creo que me gusta y relaja porque es un reto, pero es un reto que sé que voy a superar y que hay una solución “correcta”. No es como un gráfico que siempre se puede mejorar. Una vez has procesado los datos ya está, no hay más que hacer, es un problema que tiene una “solución cerrada”. Además durante el proceso tienes a alguien, el INE, con el que cabrearte por no haber pensado más en que sus datos sean más fácilmente reutilizables. Todo ventajas!!&lt;a href=&#34;#fnref3&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn4&#34;&gt;&lt;p&gt;No me lo puedo creer 520!!&lt;a href=&#34;#fnref4&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn5&#34;&gt;&lt;p&gt;Iba a hacerlo pero … shit happens y lo tengo que dejar, creo que ya vale con el Nomenclator!!! Sí.&lt;a href=&#34;#fnref5&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>Las flores de Iris</title>
      <link>https://achalmed.github.io/post/las-flores-de-iris/</link>
      <pubDate>Mon, 17 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/las-flores-de-iris/</guid>
      <description>
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/htmlwidgets/htmlwidgets.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/plotly-binding/plotly.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/typedarray/typedarray.min.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/jquery/jquery.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/crosstalk/css/crosstalk.min.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/crosstalk/js/crosstalk.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/plotly-htmlwidgets-css/plotly-htmlwidgets.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/plotly-main/plotly-latest.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/tabwid/tabwid.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;https://achalmed.github.io/post/las-flores-de-iris/index.en_files/tabwid/scrool.css&#34; rel=&#34;stylesheet&#34; /&gt;


&lt;div id=&#34;el-conjunto-de-datos-iris&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;El conjunto de datos Iris&lt;/h2&gt;
&lt;p&gt;Este es un ejemplo básico de visualización interactiva con el paquete {plotly}.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(tidyverse)
library(plotly)
p &amp;lt;- iris |&amp;gt; 
  ggplot(aes(Petal.Length, Petal.Width, col = Species)) +
  geom_point()
ggplotly(p)&lt;/code&gt;&lt;/pre&gt;
&lt;div id=&#34;htmlwidget-1&#34; style=&#34;width:672px;height:480px;&#34; class=&#34;plotly html-widget&#34;&gt;&lt;/div&gt;
&lt;script type=&#34;application/json&#34; data-for=&#34;htmlwidget-1&#34;&gt;{&#34;x&#34;:{&#34;data&#34;:[{&#34;x&#34;:[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.4,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4],&#34;y&#34;:[0.2,0.2,0.2,0.2,0.2,0.4,0.3,0.2,0.2,0.1,0.2,0.2,0.1,0.1,0.2,0.4,0.4,0.3,0.3,0.3,0.2,0.4,0.2,0.5,0.2,0.2,0.4,0.2,0.2,0.2,0.2,0.4,0.1,0.2,0.2,0.2,0.2,0.1,0.2,0.2,0.3,0.3,0.2,0.6,0.4,0.3,0.2,0.2,0.2,0.2],&#34;text&#34;:[&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.7&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.1&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.1&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.1&lt;br /&gt;Petal.Width: 0.1&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.2&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.7&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.7&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.0&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.7&lt;br /&gt;Petal.Width: 0.5&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.9&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.1&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.2&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.1&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.3&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.6&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.9&lt;br /&gt;Petal.Width: 0.4&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.3&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.6&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.5&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;,&#34;Petal.Length: 1.4&lt;br /&gt;Petal.Width: 0.2&lt;br /&gt;Species: setosa&#34;],&#34;type&#34;:&#34;scatter&#34;,&#34;mode&#34;:&#34;markers&#34;,&#34;marker&#34;:{&#34;autocolorscale&#34;:false,&#34;color&#34;:&#34;rgba(248,118,109,1)&#34;,&#34;opacity&#34;:1,&#34;size&#34;:5.66929133858268,&#34;symbol&#34;:&#34;circle&#34;,&#34;line&#34;:{&#34;width&#34;:1.88976377952756,&#34;color&#34;:&#34;rgba(248,118,109,1)&#34;}},&#34;hoveron&#34;:&#34;points&#34;,&#34;name&#34;:&#34;setosa&#34;,&#34;legendgroup&#34;:&#34;setosa&#34;,&#34;showlegend&#34;:true,&#34;xaxis&#34;:&#34;x&#34;,&#34;yaxis&#34;:&#34;y&#34;,&#34;hoverinfo&#34;:&#34;text&#34;,&#34;frame&#34;:null},{&#34;x&#34;:[4.7,4.5,4.9,4,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4,4.9,4.7,4.3,4.4,4.8,5,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4,4.4,4.6,4,3.3,4.2,4.2,4.2,4.3,3,4.1],&#34;y&#34;:[1.4,1.5,1.5,1.3,1.5,1.3,1.6,1,1.3,1.4,1,1.5,1,1.4,1.3,1.4,1.5,1,1.5,1.1,1.8,1.3,1.5,1.2,1.3,1.4,1.4,1.7,1.5,1,1.1,1,1.2,1.6,1.5,1.6,1.5,1.3,1.3,1.3,1.2,1.4,1.2,1,1.3,1.2,1.3,1.3,1.1,1.3],&#34;text&#34;:[&#34;Petal.Length: 4.7&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.9&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.0&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.6&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.7&lt;br /&gt;Petal.Width: 1.6&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.3&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.6&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.9&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.5&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.2&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.0&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.7&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.6&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.4&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.1&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.9&lt;br /&gt;Petal.Width: 1.1&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.8&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.0&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.9&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.7&lt;br /&gt;Petal.Width: 1.2&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.3&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.4&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.8&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 5.0&lt;br /&gt;Petal.Width: 1.7&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.5&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.8&lt;br /&gt;Petal.Width: 1.1&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.7&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.9&lt;br /&gt;Petal.Width: 1.2&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 1.6&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.6&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.7&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.4&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.1&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.0&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.4&lt;br /&gt;Petal.Width: 1.2&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.6&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.0&lt;br /&gt;Petal.Width: 1.2&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.3&lt;br /&gt;Petal.Width: 1.0&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.2&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.2&lt;br /&gt;Petal.Width: 1.2&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.2&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.3&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 3.0&lt;br /&gt;Petal.Width: 1.1&lt;br /&gt;Species: versicolor&#34;,&#34;Petal.Length: 4.1&lt;br /&gt;Petal.Width: 1.3&lt;br /&gt;Species: versicolor&#34;],&#34;type&#34;:&#34;scatter&#34;,&#34;mode&#34;:&#34;markers&#34;,&#34;marker&#34;:{&#34;autocolorscale&#34;:false,&#34;color&#34;:&#34;rgba(0,186,56,1)&#34;,&#34;opacity&#34;:1,&#34;size&#34;:5.66929133858268,&#34;symbol&#34;:&#34;circle&#34;,&#34;line&#34;:{&#34;width&#34;:1.88976377952756,&#34;color&#34;:&#34;rgba(0,186,56,1)&#34;}},&#34;hoveron&#34;:&#34;points&#34;,&#34;name&#34;:&#34;versicolor&#34;,&#34;legendgroup&#34;:&#34;versicolor&#34;,&#34;showlegend&#34;:true,&#34;xaxis&#34;:&#34;x&#34;,&#34;yaxis&#34;:&#34;y&#34;,&#34;hoverinfo&#34;:&#34;text&#34;,&#34;frame&#34;:null},{&#34;x&#34;:[6,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5,5.1,5.3,5.5,6.7,6.9,5,5.7,4.9,6.7,4.9,5.7,6,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5,5.2,5.4,5.1],&#34;y&#34;:[2.5,1.9,2.1,1.8,2.2,2.1,1.7,1.8,1.8,2.5,2,1.9,2.1,2,2.4,2.3,1.8,2.2,2.3,1.5,2.3,2,2,1.8,2.1,1.8,1.8,1.8,2.1,1.6,1.9,2,2.2,1.5,1.4,2.3,2.4,1.8,1.8,2.1,2.4,2.3,1.9,2.3,2.5,2.3,1.9,2,2.3,1.8],&#34;text&#34;:[&#34;Petal.Length: 6.0&lt;br /&gt;Petal.Width: 2.5&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 1.9&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.9&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.8&lt;br /&gt;Petal.Width: 2.2&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.6&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.5&lt;br /&gt;Petal.Width: 1.7&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.3&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.8&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.1&lt;br /&gt;Petal.Width: 2.5&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.3&lt;br /&gt;Petal.Width: 1.9&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.5&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.0&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 2.4&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.3&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.5&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.7&lt;br /&gt;Petal.Width: 2.2&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.9&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.0&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.7&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.9&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.7&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.9&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.7&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.0&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.8&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.9&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.8&lt;br /&gt;Petal.Width: 1.6&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.1&lt;br /&gt;Petal.Width: 1.9&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.4&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 2.2&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 1.5&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 1.4&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 6.1&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 2.4&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.5&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 4.8&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.4&lt;br /&gt;Petal.Width: 2.1&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.6&lt;br /&gt;Petal.Width: 2.4&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 1.9&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.9&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.7&lt;br /&gt;Petal.Width: 2.5&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.2&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.0&lt;br /&gt;Petal.Width: 1.9&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.2&lt;br /&gt;Petal.Width: 2.0&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.4&lt;br /&gt;Petal.Width: 2.3&lt;br /&gt;Species: virginica&#34;,&#34;Petal.Length: 5.1&lt;br /&gt;Petal.Width: 1.8&lt;br /&gt;Species: virginica&#34;],&#34;type&#34;:&#34;scatter&#34;,&#34;mode&#34;:&#34;markers&#34;,&#34;marker&#34;:{&#34;autocolorscale&#34;:false,&#34;color&#34;:&#34;rgba(97,156,255,1)&#34;,&#34;opacity&#34;:1,&#34;size&#34;:5.66929133858268,&#34;symbol&#34;:&#34;circle&#34;,&#34;line&#34;:{&#34;width&#34;:1.88976377952756,&#34;color&#34;:&#34;rgba(97,156,255,1)&#34;}},&#34;hoveron&#34;:&#34;points&#34;,&#34;name&#34;:&#34;virginica&#34;,&#34;legendgroup&#34;:&#34;virginica&#34;,&#34;showlegend&#34;:true,&#34;xaxis&#34;:&#34;x&#34;,&#34;yaxis&#34;:&#34;y&#34;,&#34;hoverinfo&#34;:&#34;text&#34;,&#34;frame&#34;:null}],&#34;layout&#34;:{&#34;margin&#34;:{&#34;t&#34;:26.2283105022831,&#34;r&#34;:7.30593607305936,&#34;b&#34;:40.1826484018265,&#34;l&#34;:43.1050228310502},&#34;plot_bgcolor&#34;:&#34;rgba(235,235,235,1)&#34;,&#34;paper_bgcolor&#34;:&#34;rgba(255,255,255,1)&#34;,&#34;font&#34;:{&#34;color&#34;:&#34;rgba(0,0,0,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:14.6118721461187},&#34;xaxis&#34;:{&#34;domain&#34;:[0,1],&#34;automargin&#34;:true,&#34;type&#34;:&#34;linear&#34;,&#34;autorange&#34;:false,&#34;range&#34;:[0.705,7.195],&#34;tickmode&#34;:&#34;array&#34;,&#34;ticktext&#34;:[&#34;2&#34;,&#34;4&#34;,&#34;6&#34;],&#34;tickvals&#34;:[2,4,6],&#34;categoryorder&#34;:&#34;array&#34;,&#34;categoryarray&#34;:[&#34;2&#34;,&#34;4&#34;,&#34;6&#34;],&#34;nticks&#34;:null,&#34;ticks&#34;:&#34;outside&#34;,&#34;tickcolor&#34;:&#34;rgba(51,51,51,1)&#34;,&#34;ticklen&#34;:3.65296803652968,&#34;tickwidth&#34;:0.66417600664176,&#34;showticklabels&#34;:true,&#34;tickfont&#34;:{&#34;color&#34;:&#34;rgba(77,77,77,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:11.689497716895},&#34;tickangle&#34;:-0,&#34;showline&#34;:false,&#34;linecolor&#34;:null,&#34;linewidth&#34;:0,&#34;showgrid&#34;:true,&#34;gridcolor&#34;:&#34;rgba(255,255,255,1)&#34;,&#34;gridwidth&#34;:0.66417600664176,&#34;zeroline&#34;:false,&#34;anchor&#34;:&#34;y&#34;,&#34;title&#34;:{&#34;text&#34;:&#34;Petal.Length&#34;,&#34;font&#34;:{&#34;color&#34;:&#34;rgba(0,0,0,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:14.6118721461187}},&#34;hoverformat&#34;:&#34;.2f&#34;},&#34;yaxis&#34;:{&#34;domain&#34;:[0,1],&#34;automargin&#34;:true,&#34;type&#34;:&#34;linear&#34;,&#34;autorange&#34;:false,&#34;range&#34;:[-0.02,2.62],&#34;tickmode&#34;:&#34;array&#34;,&#34;ticktext&#34;:[&#34;0.0&#34;,&#34;0.5&#34;,&#34;1.0&#34;,&#34;1.5&#34;,&#34;2.0&#34;,&#34;2.5&#34;],&#34;tickvals&#34;:[0,0.5,1,1.5,2,2.5],&#34;categoryorder&#34;:&#34;array&#34;,&#34;categoryarray&#34;:[&#34;0.0&#34;,&#34;0.5&#34;,&#34;1.0&#34;,&#34;1.5&#34;,&#34;2.0&#34;,&#34;2.5&#34;],&#34;nticks&#34;:null,&#34;ticks&#34;:&#34;outside&#34;,&#34;tickcolor&#34;:&#34;rgba(51,51,51,1)&#34;,&#34;ticklen&#34;:3.65296803652968,&#34;tickwidth&#34;:0.66417600664176,&#34;showticklabels&#34;:true,&#34;tickfont&#34;:{&#34;color&#34;:&#34;rgba(77,77,77,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:11.689497716895},&#34;tickangle&#34;:-0,&#34;showline&#34;:false,&#34;linecolor&#34;:null,&#34;linewidth&#34;:0,&#34;showgrid&#34;:true,&#34;gridcolor&#34;:&#34;rgba(255,255,255,1)&#34;,&#34;gridwidth&#34;:0.66417600664176,&#34;zeroline&#34;:false,&#34;anchor&#34;:&#34;x&#34;,&#34;title&#34;:{&#34;text&#34;:&#34;Petal.Width&#34;,&#34;font&#34;:{&#34;color&#34;:&#34;rgba(0,0,0,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:14.6118721461187}},&#34;hoverformat&#34;:&#34;.2f&#34;},&#34;shapes&#34;:[{&#34;type&#34;:&#34;rect&#34;,&#34;fillcolor&#34;:null,&#34;line&#34;:{&#34;color&#34;:null,&#34;width&#34;:0,&#34;linetype&#34;:[]},&#34;yref&#34;:&#34;paper&#34;,&#34;xref&#34;:&#34;paper&#34;,&#34;x0&#34;:0,&#34;x1&#34;:1,&#34;y0&#34;:0,&#34;y1&#34;:1}],&#34;showlegend&#34;:true,&#34;legend&#34;:{&#34;bgcolor&#34;:&#34;rgba(255,255,255,1)&#34;,&#34;bordercolor&#34;:&#34;transparent&#34;,&#34;borderwidth&#34;:1.88976377952756,&#34;font&#34;:{&#34;color&#34;:&#34;rgba(0,0,0,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:11.689497716895},&#34;title&#34;:{&#34;text&#34;:&#34;Species&#34;,&#34;font&#34;:{&#34;color&#34;:&#34;rgba(0,0,0,1)&#34;,&#34;family&#34;:&#34;&#34;,&#34;size&#34;:14.6118721461187}}},&#34;hovermode&#34;:&#34;closest&#34;,&#34;barmode&#34;:&#34;relative&#34;},&#34;config&#34;:{&#34;doubleClick&#34;:&#34;reset&#34;,&#34;modeBarButtonsToAdd&#34;:[&#34;hoverclosest&#34;,&#34;hovercompare&#34;],&#34;showSendToCloud&#34;:false},&#34;source&#34;:&#34;A&#34;,&#34;attrs&#34;:{&#34;2bb478dfd86e&#34;:{&#34;x&#34;:{},&#34;y&#34;:{},&#34;colour&#34;:{},&#34;type&#34;:&#34;scatter&#34;}},&#34;cur_data&#34;:&#34;2bb478dfd86e&#34;,&#34;visdat&#34;:{&#34;2bb478dfd86e&#34;:[&#34;function (y) &#34;,&#34;x&#34;]},&#34;highlight&#34;:{&#34;on&#34;:&#34;plotly_click&#34;,&#34;persistent&#34;:false,&#34;dynamic&#34;:false,&#34;selectize&#34;:false,&#34;opacityDim&#34;:0.2,&#34;selected&#34;:{&#34;opacity&#34;:1},&#34;debounce&#34;:0},&#34;shinyEvents&#34;:[&#34;plotly_hover&#34;,&#34;plotly_click&#34;,&#34;plotly_selected&#34;,&#34;plotly_relayout&#34;,&#34;plotly_brushed&#34;,&#34;plotly_brushing&#34;,&#34;plotly_clickannotation&#34;,&#34;plotly_doubleclick&#34;,&#34;plotly_deselect&#34;,&#34;plotly_afterplot&#34;,&#34;plotly_sunburstclick&#34;],&#34;base_url&#34;:&#34;https://plot.ly&#34;},&#34;evals&#34;:[],&#34;jsHooks&#34;:[]}&lt;/script&gt;
&lt;p&gt;Podemos incluir también tablas profesionales:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(flextable)
iris |&amp;gt; 
  group_by(Species) |&amp;gt; 
  summarise(across(.fns = list(mean))) |&amp;gt; 
  flextable() |&amp;gt; 
  autofit()&lt;/code&gt;&lt;/pre&gt;
&lt;template id=&#34;4060e4dd-8d2a-4880-859c-161678815ef2&#34;&gt;&lt;style&gt;
.tabwid table{
  border-spacing:0px !important;
  border-collapse:collapse;
  line-height:1;
  margin-left:auto;
  margin-right:auto;
  border-width: 0;
  display: table;
  border-color: transparent;
  caption-side: top;
}
.tabwid-caption-bottom table{
  caption-side: bottom;
}
.tabwid_left table{
  margin-left:0;
}
.tabwid_right table{
  margin-right:0;
}
.tabwid td {
    padding: 0;
}
.tabwid a {
  text-decoration: none;
}
.tabwid thead {
    background-color: transparent;
}
.tabwid tfoot {
    background-color: transparent;
}
.tabwid table tr {
background-color: transparent;
}
.katex-display {
    margin: 0 0 !important;
}
&lt;/style&gt;&lt;div class=&#34;tabwid&#34;&gt;&lt;style&gt;.cl-306024da{}.cl-3054a524{font-family:&#39;DejaVu Sans&#39;;font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-305bdd30{margin:0;text-align:left;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-305bdd4e{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-305c0530{width:1.031in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 2pt solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0558{width:1.461in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 2pt solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0562{width:1.379in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 2pt solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c056c{width:1.419in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 2pt solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c056d{width:1.337in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 2pt solid rgba(102, 102, 102, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0576{width:1.031in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0580{width:1.461in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0581{width:1.379in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c0594{width:1.419in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c059e{width:1.337in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c059f{width:1.031in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05a8{width:1.461in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05a9{width:1.379in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05b2{width:1.419in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05b3{width:1.337in;background-color:transparent;vertical-align: middle;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05bc{width:1.031in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05c6{width:1.461in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05c7{width:1.379in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05c8{width:1.419in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-305c05d0{width:1.337in;background-color:transparent;vertical-align: middle;border-bottom: 2pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}&lt;/style&gt;&lt;table class=&#39;cl-306024da&#39;&gt;&lt;thead&gt;&lt;tr style=&#34;overflow-wrap:break-word;&#34;&gt;&lt;td class=&#34;cl-305c0530&#34;&gt;&lt;p class=&#34;cl-305bdd30&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;Species&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c0558&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;Sepal.Length_1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c0562&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;Sepal.Width_1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c056c&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;Petal.Length_1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c056d&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;Petal.Width_1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr style=&#34;overflow-wrap:break-word;&#34;&gt;&lt;td class=&#34;cl-305c0576&#34;&gt;&lt;p class=&#34;cl-305bdd30&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;setosa&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c0580&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;5.006&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c0581&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;3.428&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c0594&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;1.462&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c059e&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;0.246&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&#34;overflow-wrap:break-word;&#34;&gt;&lt;td class=&#34;cl-305c059f&#34;&gt;&lt;p class=&#34;cl-305bdd30&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;versicolor&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05a8&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;5.936&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05a9&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;2.770&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05b2&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;4.260&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05b3&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;1.326&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&#34;overflow-wrap:break-word;&#34;&gt;&lt;td class=&#34;cl-305c05bc&#34;&gt;&lt;p class=&#34;cl-305bdd30&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;virginica&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05c6&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;6.588&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05c7&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;2.974&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05c8&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;5.552&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td class=&#34;cl-305c05d0&#34;&gt;&lt;p class=&#34;cl-305bdd4e&#34;&gt;&lt;span class=&#34;cl-3054a524&#34;&gt;2.026&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/template&gt;
&lt;div class=&#34;flextable-shadow-host&#34; id=&#34;fc1978fc-e5ca-46ab-b62f-470b07303bba&#34;&gt;&lt;/div&gt;
&lt;script&gt;
var dest = document.getElementById(&#34;fc1978fc-e5ca-46ab-b62f-470b07303bba&#34;);
var template = document.getElementById(&#34;4060e4dd-8d2a-4880-859c-161678815ef2&#34;);
var caption = template.content.querySelector(&#34;caption&#34;);
var fantome = dest.attachShadow({mode: &#39;open&#39;});
var templateContent = template.content;
fantome.appendChild(templateContent);
&lt;/script&gt;

&lt;/div&gt;
&lt;div id=&#34;visualización-de-mapa-interactivo&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Visualización de mapa interactivo&lt;/h2&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>poblacion municipal</title>
      <link>https://achalmed.github.io/post/poblacion-municipal/</link>
      <pubDate>Sun, 16 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/poblacion-municipal/</guid>
      <description>
&lt;script src=&#34;https://achalmed.github.io/post/poblacion-municipal/index.en_files/clipboard/clipboard.min.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/poblacion-municipal/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;https://achalmed.github.io/post/poblacion-municipal/index.en_files/xaringanExtra-clipboard/xaringanExtra-clipboard.js&#34;&gt;&lt;/script&gt;
&lt;script&gt;window.xaringanExtraClipboard(null, {&#34;button&#34;:&#34;&lt;i class=\&#34;fa fa-clipboard\&#34;&gt;&lt;\/i&gt;&#34;,&#34;success&#34;:&#34;&lt;i class=\&#34;fa fa-check\&#34; style=\&#34;color: #90BE6D\&#34;&gt;&lt;\/i&gt;&#34;,&#34;error&#34;:&#34;Press Ctrl+C to Copy&#34;})&lt;/script&gt;
&lt;link href=&#34;https://achalmed.github.io/post/poblacion-municipal/index.en_files/font-awesome/css/all.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;https://achalmed.github.io/post/poblacion-municipal/index.en_files/font-awesome/css/v4-shims.css&#34; rel=&#34;stylesheet&#34; /&gt;


&lt;p&gt;Siempre me ha gustado saber cuantos habitantes tiene mi pueblo y resulta que el 30 de diciembre de 2020 el INE publicó finalmente las cifras definitivas de &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177011&amp;amp;menu=resultados&amp;amp;idp=1254734710990&#34;&gt;población municipal&lt;/a&gt; referentes a fecha 1 de enero de 2020, así que …&lt;/p&gt;
&lt;div id=&#34;introducción&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Introducción&lt;/h2&gt;
&lt;p&gt;Como señala el INE, la operación estadística “Cifras oficiales de población de los municipios españoles: Revisión del Padrón Municipal” publica con referencia a 1 de enero de cada año, la población por sexo a nivel municipal. &lt;a href=&#34;#fn1&#34; class=&#34;footnote-ref&#34; id=&#34;fnref1&#34;&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;El &lt;strong&gt;Padrón Municipal&lt;/strong&gt; es un registro administrativo donde constan los vecinos del municipio. Su formación, mantenimiento, revisión y custodia corresponde a los respectivos &lt;strong&gt;ayuntamientos&lt;/strong&gt;, quienes &lt;strong&gt;deben remitir al INE&lt;/strong&gt; las variaciones mensuales. El INE, realiza comprobaciones, subsana errores y duplicidades y obtiene para cada municipio la cifra de población. El Presidente del INE, con el informe favorable del Consejo de Empadronamiento, eleva al Gobierno la propuesta de cifras oficiales de población de los municipios españoles referidas a 1 de enero de cada año, para su aprobación mediante real decreto, &lt;strong&gt;declarando así como oficiales las cifras de población&lt;/strong&gt; resultantes de la revisión del Padrón municipal y procediendo a su publicación en el Boletín Oficial del Estado.&lt;/p&gt;
&lt;p&gt;De forma que la cifra oficial de &lt;strong&gt;población en España a 1 de enero de 2020 fue de 47.450.795 personas&lt;/strong&gt;; es decir, 424.587 más que en 2019. Pero, ¿cómo está distribuida esa población por los 8.131 municipios españoles?&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&#34;datos&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Datos&lt;/h2&gt;
&lt;p&gt;El INE ofrece &lt;a href=&#34;https://www.ine.es/dynt3/inebase/es/index.htm?padre=517&amp;amp;capsel=525&#34;&gt;aquí&lt;/a&gt;&lt;a href=&#34;#fn2&#34; class=&#34;footnote-ref&#34; id=&#34;fnref2&#34;&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt; los datos de población a nivel municipal. Los datos están en un archivo comprimido que contiene un fichero para cada año desde 1996, con la excepción de 1997, con la población de los municipios españoles (por genero) a 1 de enero de cada año.&lt;a href=&#34;#fn3&#34; class=&#34;footnote-ref&#34; id=&#34;fnref3&#34;&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Vamos al lio, hay que descargar, arreglar/limpiar y fusionar los distintos ficheros. El objetivo es tener los datos de todos los años en un único fichero. Esto yo ya lo había hecho hace tiempo, así que solo me ha tocado añadir los datos de 2020 y arreglar un poco el código.&lt;/p&gt;
&lt;p&gt;La verdad es que, al menos para mi, no es fácil fusionar los 24 ficheros de población municipal que ofrece el INE. Hay algunas inconsistencias en los nombres de los ficheros y variables que no siempre es fácil detectar, pero bueno ya lo tengo hecho.&lt;a href=&#34;#fn4&#34; class=&#34;footnote-ref&#34; id=&#34;fnref4&#34;&gt;&lt;sup&gt;4&lt;/sup&gt;&lt;/a&gt;, &lt;a href=&#34;#fn5&#34; class=&#34;footnote-ref&#34; id=&#34;fnref5&#34;&gt;&lt;sup&gt;5&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Como nadie va a mirar mi código para ver cuales son esas inconsistencias a la hora de fusionar los ficheros, señalaré algunas:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;los nombres de los ficheros no incorporan el año completo, por ejemplo: &lt;code&gt;pobmun03.xls&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;hay ficheros &lt;code&gt;.xls&lt;/code&gt; y &lt;code&gt;.xlsx&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Estas dos inconsistencias son menores y la segunda de ellas es lógico que ocurra, dado que hay datos de cuando el formato &lt;code&gt;.xlsx&lt;/code&gt; no existía&lt;a href=&#34;#fn6&#34; class=&#34;footnote-ref&#34; id=&#34;fnref6&#34;&gt;&lt;sup&gt;6&lt;/sup&gt;&lt;/a&gt;, pero dificultan el fusionar los ficheros de forma automática con código.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;generalmente los ficheros tienen una linea informativa antes de los datos, pero el fichero correspondiente a 1998 no tenía esa linea, y los ficheros de 2012 a 2015 y 2017 tenían dos lineas de cabecera.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;los ficheros de 2002, 2007 y 2009 tienen filas con los totales provinciales, cosa que no ocurre en el resto de años; ademas, el fichero de 2016 tiene una fila para el total de la población española.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Otra vez inconsistencias menores, que son totalmente lógicas, pero que dificultan la fusión de los archivos.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;en el fichero de 1998, el valor de la variable &lt;code&gt;CMUN&lt;/code&gt; tiene cuatro dígitos, cuando debería tener solo 3. Hay que quedarse con los 3 primeros dígitos, creo que el cuarto es el primer dígito de la variable DC, dígito de control. Se debió colar.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Todas son inconsistencias menores y un error tonto, pero dificultan mucho la fusión de los ficheros anuales con la población municipal en un único fichero. Vuelvo a reiterar que son errores menores: a ver cuantos fallos he cometido yo!!! espero que ninguno, pero recordad que yo lo hago a veces por gusto, a veces por motivos profesionales. En este caso realicé la fusión para tener un fichero de datos con los que trabajar en clase.&lt;/p&gt;
&lt;div id=&#34;no-hay-otra-forma-de-obtener-los-datos-oficiales-de-población&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;¿No hay otra forma de obtener los datos oficiales de población?&lt;/h3&gt;
&lt;p&gt;Sí, que yo sepa hay dos formas más:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Los &lt;a href=&#34;https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&amp;amp;cid=1254736177012&amp;amp;menu=resultados&amp;amp;secc=1254736195462&amp;amp;idp=1254734710990#!tabs-1254736195462&#34;&gt;microdatos&lt;/a&gt; del Padrón Continuo. El INE provee un fichero .zip por año. Dentro del fichero .zip están los microdatos en varios formatos, incluyendo también un script para transformar los datos a formato R. Evidentemente los microdatos ofrecen más información: lugar de nacimiento y edad , pero por motivos de secreto estadístico se blanquea el municipio de residencia y nacimiento en los municipios de menos de 10.000 habitantes. Es decir, con los microdatos no podría saber cuantos habitantes tiene mi pueblo.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Un conjunto de tablas en formato &lt;code&gt;pcaxis&lt;/code&gt; con la población municipal por genero y alguna otra característica (edad y lugar de nacimiento desagregado y cruzado a varios niveles). Con estas tablas podría ver por ejemplo la composición por edad o nacionalidad de mi pueblo. El INE ofrece estas tablas en un fichero para el periodo 2015-2020 y un fichero individual para años anteriores. Seguro que lo haré!!&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;análisis&#34; class=&#34;section level2&#34;&gt;
&lt;h2&gt;Análisis&lt;/h2&gt;
&lt;p&gt;La verdad es que al fichero con la población municipal fusionada ya le he sacado provecho en clase. Es un fichero que suele gustar a los estudiantes: a todos nos gusta contar y saber los habitantes de nuestro pueblo, sobre todo al &lt;a href=&#34;https://www.youtube.com/watch?v=KZmLI7eYjmw&#34;&gt;Conde Draco&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Solo con los datos de población municipal no se pueden hacer, evidentemente, análisis complejos pero si sirven para ver algunas pautas en la población y su distribución territorial y también para contestar a muchas curiosidades como por ejemplo: ¿en qué provincias ha crecido más la población en la última década? o ¿cuantos municipios hay en España con más mujeres que hombres? Estos dos ejercicios solemos hacerlos en clase, así que aquí los replicaré en próximos posts.&lt;/p&gt;
&lt;p&gt;Para cerrar este post presento un gráfico con las pautas, durante el periodo 2000-2020, del crecimiento de población en los municipios españoles. Como puede verse, buena parte del territorio experimenta reducciones de población. Los municipios que crecen por encima de la media española se concentran a lo largo de la costa mediterranea, en Baleares y Canarias, alrededores de Madrid y en menor medida el País Vasco. Asimismo, la mayoría de capitales provinciales o sus zonas limítrofes presentan crecimiento de población importantes. Por contra, como es bien sabido, las zonas del interior y alejadas de las capitales experimentan crecimientos negativos: &lt;a href=&#34;https://www.geografiainfinita.com/2019/03/un-recorrido-por-la-espana-olvidada-y-vaciada/&#34;&gt;la España vaciada&lt;/a&gt;.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;#- quiero hacer un mapa con el crecimiento de la población en el periodo 2000-2020
library(tidyverse)
library(sf)

# datos ----
geo_muni &amp;lt;- readr::read_rds(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/geo_datos_mios/geo_muni_2020_LAU2_canarias.rds&amp;quot;)
geo_prov &amp;lt;- readr::read_rds(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/geo_datos_mios/geo_prov_2020_LAU2_canarias.rds&amp;quot;)
pob_2000_2020 &amp;lt;- readr::read_rds(&amp;quot;/home/pjpv/Escritorio/my_datos_2021/datos/INE/pob_mun/ine_pob_mun_1996_2020.rds&amp;quot;)
geo_morocco &amp;lt;- rnaturalearth::ne_countries(scale = &amp;quot;medium&amp;quot;, returnclass = &amp;quot;sf&amp;quot;) %&amp;gt;% 
               dplyr::filter(sovereignt %in% c(&amp;quot;Morocco&amp;quot;)) %&amp;gt;% select(sovereignt)

#- crecimiento de la poblacon en España 2000-2020
crec_esp &amp;lt;- pob_2000_2020 %&amp;gt;% 
  filter(year %in% c(2000, 2020)) %&amp;gt;% 
  filter(poblacion == &amp;quot;Total&amp;quot;) %&amp;gt;% 
  select(year, values) %&amp;gt;% 
  group_by(year) %&amp;gt;% 
  summarise(habitantes = sum(values)) %&amp;gt;% 
  mutate(crec_abs = habitantes - lag(habitantes)) %&amp;gt;% 
  mutate(crec_percent = crec_abs /lag(habitantes)) %&amp;gt;% ungroup()
media_crec_esp &amp;lt;-  crec_esp[[2,4]]*100
#- calculo crecimiento 2000-20 -----
pob_muni &amp;lt;- pob_2000_2020 %&amp;gt;% 
  filter(year %in% c(2000, 2020)) %&amp;gt;% 
  filter(poblacion == &amp;quot;Total&amp;quot;) %&amp;gt;% 
  group_by(ine_muni, ine_muni.n, year) %&amp;gt;% 
  mutate(habitantes = sum(values)) %&amp;gt;% 
  select(ine_muni, ine_muni.n, capital_prov, ine_prov, ine_prov.n, ine_ccaa, ine_ccaa.n, year, habitantes) %&amp;gt;%
  distinct() %&amp;gt;% 
  pivot_wider(names_from = c(&amp;quot;year&amp;quot;), values_from = c(&amp;quot;habitantes&amp;quot;)) %&amp;gt;% 
  mutate(crec_2020_2000 = `2020`- `2000`) %&amp;gt;% 
  mutate(crec_porcentual = (`2020`- `2000`) / `2000` *100) %&amp;gt;% 
  arrange(desc(crec_porcentual)) %&amp;gt;% ungroup() %&amp;gt;% 
  mutate(crec_porcentual.n = paste0(round(crec_porcentual, digits = 1), &amp;quot;%&amp;quot;)) %&amp;gt;% 
  mutate(crec_porcentual_d = as_factor(case_when(
    crec_porcentual &amp;lt; 0 ~ &amp;quot;Negativo&amp;quot;,
    between(crec_porcentual, 0, media_crec_esp) ~ &amp;quot;&amp;lt; media&amp;quot;,
    crec_porcentual &amp;gt; media_crec_esp ~ &amp;quot;&amp;gt; media&amp;quot;)))
pob_muni &amp;lt;- pob_muni %&amp;gt;% mutate(crec_porcentual_d = fct_relevel(crec_porcentual_d, &amp;quot;Negativo&amp;quot;, &amp;quot;&amp;lt; media&amp;quot;))

#- theme -----------------
my_theme_maps &amp;lt;- theme_minimal() + theme(
  text = element_text(family = &amp;quot;Ubuntu Regular&amp;quot;, color = &amp;quot;#22211d&amp;quot;),
  axis.line = element_blank(),
  axis.text.x = element_blank(),
  axis.text.y = element_blank(),
  axis.ticks = element_blank(),
  axis.title.x = element_blank(),
  axis.title.y = element_blank(),
  # panel.grid.minor = element_line(color = &amp;quot;#ebebe5&amp;quot;, size = 0.2),
  panel.grid.major = element_line(color = NA, size = 0.2), #- &amp;quot;#ebebe5&amp;quot;
  panel.grid.minor = element_blank(),
  plot.background = element_rect(fill = &amp;quot;#f5f5f2&amp;quot;, color = NA), 
  panel.background = element_rect(fill = &amp;quot;#f5f5f2&amp;quot;, color = NA), 
  legend.background = element_rect(fill = &amp;quot;#f5f5f2&amp;quot;, color = NA),
  panel.border = element_blank(),
  strip.text.x = element_blank(),
  strip.background = element_rect(colour=&amp;quot;white&amp;quot;, fill=&amp;quot;white&amp;quot;),
  legend.position = c(.9,.2),
  plot.title = element_text(size = 16, face = &amp;quot;bold&amp;quot;)  )

#- decido q geometrías uso ----
my_geo &amp;lt;- geo_muni #- AQUI-AQUI
my_geo &amp;lt;- inner_join(my_geo, pob_muni)  #- AQUI-AQUI
my_canarias &amp;lt;- my_geo %&amp;gt;% 
  filter(ine_ccaa == &amp;quot;05&amp;quot;) #- solo para el cuadrito, no para las geo
ceuta &amp;lt;- my_geo %&amp;gt;% filter(ine_ccaa %in% c(18,19))
capitales &amp;lt;- pob_muni %&amp;gt;% 
  filter(capital_prov == &amp;quot;Sí&amp;quot;) %&amp;gt;% 
  left_join(. , st_drop_geometry(geo_muni)) %&amp;gt;% 
  mutate(capital_prov.2 = ifelse(capital_prov == &amp;quot;Sí&amp;quot;, &amp;quot;Capital provincial&amp;quot;, &amp;quot;NO&amp;quot;))

#- elección de variables q grafíco ----
my_vv &amp;lt;- expr(crec_porcentual_d)  #- AQUI-AQUI   (para la leyenda)
my_vv_2 &amp;lt;- expr(crec_porcentual.n)  #- AQUI-AQUI  para el label text

#janitor::tabyl(pob_muni, crec_porcentual_d)

#- Plot con labels
p &amp;lt;- ggplot() + 
  geom_sf(data = geo_morocco, aes(geometry = geometry)) +
  geom_sf(data = my_geo, aes(geometry = geometry, fill = !!my_vv), color = NA ) + 
  geom_point(data = capitales, aes(x = X, y = Y, color = capital_prov.2)) +
  geom_text(data = ceuta, aes(x = X1, y = Y1, label = !!my_vv_2), #- v. continua
            color = &amp;quot;black&amp;quot;,  
            check_overlap = TRUE, size = 3) + #- fontface = &amp;quot;bold&amp;quot;
  geom_sf(data = geo_prov, aes(geometry = geometry, fill = NA )) + 
  coord_sf(xlim = c(st_bbox(my_geo)[1]-0.2, st_bbox(my_geo)[3]+0.3), 
           ylim = c(st_bbox(my_geo)[2]-0.1, st_bbox(my_geo)[4]+0.3), expand = FALSE) + 
  geom_rect(aes(xmin = st_bbox(my_canarias)[1]-2.5, xmax = st_bbox(my_canarias)[3]+0.1, 
                ymin = st_bbox(my_canarias)[2]-2.5, ymax = st_bbox(my_canarias)[4]+0.1), 
            fill = NA, colour = &amp;quot;black&amp;quot;, size = 0.3, show.legend = FALSE, linejoin= &amp;quot;round&amp;quot;, linetype = 2) +
  scale_color_manual(name = NULL,  values = c(&amp;quot;black&amp;quot;)) +
  scale_fill_manual(name = NULL,  values = c(&amp;quot;#ee3b3b&amp;quot;, &amp;quot;#8ee5ee&amp;quot;,  &amp;quot;#9acd32&amp;quot;)) +
  labs(title = &amp;quot;Crecimiento de la población municipal: 2000-2020&amp;quot;,
       subtitle = my_subtitle, x = &amp;quot;&amp;quot;, y = &amp;quot;&amp;quot;,
       caption = &amp;quot;Datos de población del INE. Geometrías del paquete LAU2boundaries4spain. Visualización: @pjpv4444&amp;quot;) &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&#34;imagenes/2021_02_10_poblacion_municipal_01.png&#34; width=&#34;70%&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;footnotes footnotes-end-of-document&#34;&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id=&#34;fn1&#34;&gt;&lt;p&gt;Las series comienzan en el año 1996, punto de arranque del actual sistema de gestión padronal y cuyas cifras van referidas al 1 de mayo siendo la Revisión a 1 de enero de 1998 la primera actualización en llevarse a cabo de acuerdo a este sistema.&lt;a href=&#34;#fnref1&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn2&#34;&gt;&lt;p&gt;El enlace de descarga es &lt;a href=&#34;https://www.ine.es/pob_xls/pobmun.zip&#34;&gt;este&lt;/a&gt;&lt;a href=&#34;#fnref2&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn3&#34;&gt;&lt;p&gt;El fichero de 1996 tiene las cifras de población referenciadas a 1 de mayo&lt;a href=&#34;#fnref3&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn4&#34;&gt;&lt;p&gt;La verdad es que cuando estás arreglando un dataset y ves fallos tontos o inconsistencias que te van dificultando el proceso, maldices y juras como 100 veces en arameo, pero ninguna crítica al INE. Entiendo que intentan hacer las cosas lo mejor que pueden con sus restricciones de tiempo, personal etc … y que tienen sus propios objetivos y su propia historia: en 1998, fecha de cuando datan algunos de los archivos, no se tenían ni los mismos conocimientos, ni herramientas, ni forma de trabajar etc… etc…. Además, cualquiera que vea mi código puede pensar lo mismo de mi, que no soy consistente etc … pues sí, lo hago como sé y puedo con el tiempo que le quiero dedicar.&lt;a href=&#34;#fnref4&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn5&#34;&gt;&lt;p&gt;De verdad, ninguna crítica al INE, pero quizás sí que el INE debería crear, igual ya existe, algún canal para hacer sugerencias para favorecer la usabilidad de los datos. Para un usuario medio creo que no es fácil fusionar estos datos ni detectar las inconsistencias para fusionarlos, así que mi petición al INE consistiría en que ofreciese, además de los ficheros tal y como están ahora, no tocarlos por favor, un enlace para descargar los ficheros ya fusionados&lt;a href=&#34;#fnref5&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li id=&#34;fn6&#34;&gt;&lt;p&gt;El formato &lt;code&gt;.xlsx&lt;/code&gt; apareció en 2007, pero el fichero INE con los datos de 1996 sí está en ese formato; sin embargo los de 1998 hasta 2013 están en formato &lt;code&gt;.xls&lt;/code&gt;&lt;a href=&#34;#fnref6&#34; class=&#34;footnote-back&#34;&gt;↩︎&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>Welcome to Wowchemy, the website builder for Hugo</title>
      <link>https://achalmed.github.io/post/getting-started/</link>
      <pubDate>Sun, 13 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/getting-started/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;libr&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;hello&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;The Wowchemy website builder for Hugo, along with its starter templates, is designed for professional creators, educators, and teams/organizations - although it can be used to create any kind of site&lt;/li&gt;
&lt;li&gt;The template can be modified and customised to suit your needs. It&amp;rsquo;s a good platform for anyone looking to take control of their data and online identity whilst having the convenience to start off with a &lt;strong&gt;no-code solution (write in Markdown and customize with YAML parameters)&lt;/strong&gt; and having &lt;strong&gt;flexibility to later add even deeper personalization with HTML and CSS&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You can work with all your favourite tools and apps with hundreds of plugins and integrations to speed up your workflows, interact with your readers, and much more&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&#34;https://wowchemy.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;















&lt;figure  &gt;
  &lt;div class=&#34;d-flex justify-content-center&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img src=&#34;https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/starters/academic/preview.png&#34; alt=&#34;The template is mobile first with a responsive design to ensure that your site looks stunning on every device.&#34; loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;get-started&#34;&gt;Get Started&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;👉 &lt;a href=&#34;https://wowchemy.com/templates/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;Create a new site&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;📚 &lt;a href=&#34;https://wowchemy.com/docs/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;Personalize your site&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;💬 &lt;a href=&#34;https://discord.gg/z8wNYzb&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Chat with the &lt;strong&gt;Wowchemy community&lt;/strong&gt;&lt;/a&gt; or &lt;a href=&#34;https://discourse.gohugo.io&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;Hugo community&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;🐦 Twitter: &lt;a href=&#34;https://twitter.com/wowchemy&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@wowchemy&lt;/a&gt; &lt;a href=&#34;https://twitter.com/GeorgeCushen&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@GeorgeCushen&lt;/a&gt; &lt;a href=&#34;https://twitter.com/search?q=%23MadeWithWowchemy&amp;amp;src=typed_query&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;#MadeWithWowchemy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;💡 &lt;a href=&#34;https://github.com/wowchemy/wowchemy-hugo-themes/issues&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Request a &lt;strong&gt;feature&lt;/strong&gt; or report a &lt;strong&gt;bug&lt;/strong&gt; for &lt;em&gt;Wowchemy&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;⬆️ &lt;strong&gt;Updating Wowchemy?&lt;/strong&gt; View the &lt;a href=&#34;https://wowchemy.com/docs/hugo-tutorials/update/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Update Tutorial&lt;/a&gt; and &lt;a href=&#34;https://wowchemy.com/updates/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Release Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;crowd-funded-open-source-software&#34;&gt;Crowd-funded open-source software&lt;/h2&gt;
&lt;p&gt;To help us develop this template and software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship.&lt;/p&gt;
&lt;h3 id=&#34;-click-here-to-become-a-sponsor-and-help-support-wowchemys-future-httpswowchemycomsponsor&#34;&gt;&lt;a href=&#34;https://wowchemy.com/sponsor/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;❤️ Click here to become a sponsor and help support Wowchemy&amp;rsquo;s future ❤️&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;As a token of appreciation for sponsoring, you can &lt;strong&gt;unlock &lt;a href=&#34;https://wowchemy.com/sponsor/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;these&lt;/a&gt; awesome rewards and extra features 🦄✨&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&#34;ecosystem&#34;&gt;Ecosystem&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://github.com/wowchemy/hugo-academic-cli&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Hugo Academic CLI&lt;/a&gt;:&lt;/strong&gt; Automatically import publications from BibTeX&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;inspiration&#34;&gt;Inspiration&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://academic-demo.netlify.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Check out the latest &lt;strong&gt;demo&lt;/strong&gt;&lt;/a&gt; of what you&amp;rsquo;ll get in less than 10 minutes, or &lt;a href=&#34;https://wowchemy.com/user-stories/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;view the &lt;strong&gt;showcase&lt;/strong&gt;&lt;/a&gt; of personal, project, and business sites.&lt;/p&gt;
&lt;h2 id=&#34;features&#34;&gt;Features&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Page builder&lt;/strong&gt; - Create &lt;em&gt;anything&lt;/em&gt; with &lt;a href=&#34;https://wowchemy.com/docs/page-builder/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;widgets&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://wowchemy.com/docs/content/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;elements&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Edit any type of content&lt;/strong&gt; - Blog posts, publications, talks, slides, projects, and more!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Create content&lt;/strong&gt; in &lt;a href=&#34;https://wowchemy.com/docs/content/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;Markdown&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://wowchemy.com/docs/import/jupyter/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;Jupyter&lt;/strong&gt;&lt;/a&gt;, or &lt;a href=&#34;https://wowchemy.com/docs/install-locally/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;RStudio&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Plugin System&lt;/strong&gt; - Fully customizable &lt;a href=&#34;https://wowchemy.com/docs/customization/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;strong&gt;color&lt;/strong&gt; and &lt;strong&gt;font themes&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Display Code and Math&lt;/strong&gt; - Code highlighting and &lt;a href=&#34;https://en.wikibooks.org/wiki/LaTeX/Mathematics&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;LaTeX math&lt;/a&gt; supported&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Integrations&lt;/strong&gt; - &lt;a href=&#34;https://analytics.google.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Google Analytics&lt;/a&gt;, &lt;a href=&#34;https://disqus.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Disqus commenting&lt;/a&gt;, Maps, Contact Forms, and more!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Beautiful Site&lt;/strong&gt; - Simple and refreshing one page design&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Industry-Leading SEO&lt;/strong&gt; - Help get your website found on search engines and social media&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Media Galleries&lt;/strong&gt; - Display your images and videos with captions in a customizable gallery&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mobile Friendly&lt;/strong&gt; - Look amazing on every screen with a mobile friendly version of your site&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multi-language&lt;/strong&gt; - 34+ language packs including English, 中文, and Português&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multi-user&lt;/strong&gt; - Each author gets their own profile page&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Privacy Pack&lt;/strong&gt; - Assists with GDPR&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stand Out&lt;/strong&gt; - Bring your site to life with animation, parallax backgrounds, and scroll effects&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One-Click Deployment&lt;/strong&gt; - No servers. No databases. Only files.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;themes&#34;&gt;Themes&lt;/h2&gt;
&lt;p&gt;Wowchemy and its templates come with &lt;strong&gt;automatic day (light) and night (dark) mode&lt;/strong&gt; built-in. Alternatively, visitors can choose their preferred mode - click the moon icon in the top right of the &lt;a href=&#34;https://academic-demo.netlify.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Demo&lt;/a&gt; to see it in action! Day/night mode can also be disabled by the site admin in &lt;code&gt;params.toml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://wowchemy.com/docs/customization&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Choose a stunning &lt;strong&gt;theme&lt;/strong&gt; and &lt;strong&gt;font&lt;/strong&gt;&lt;/a&gt; for your site. Themes are fully customizable.&lt;/p&gt;
&lt;h2 id=&#34;license&#34;&gt;License&lt;/h2&gt;
&lt;p&gt;Copyright 2016-present &lt;a href=&#34;https://georgecushen.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;George Cushen&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Released under the &lt;a href=&#34;https://github.com/wowchemy/wowchemy-hugo-themes/blob/master/LICENSE.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;MIT&lt;/a&gt; license.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Hello R Markdown</title>
      <link>https://achalmed.github.io/post/2020-12-01-r-rmarkdown/</link>
      <pubDate>Tue, 01 Dec 2020 21:13:14 -0500</pubDate>
      <guid>https://achalmed.github.io/post/2020-12-01-r-rmarkdown/</guid>
      <description>


&lt;div id=&#34;r-markdown&#34; class=&#34;section level1&#34;&gt;
&lt;h1&gt;R Markdown&lt;/h1&gt;
&lt;p&gt;This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see &lt;a href=&#34;http://rmarkdown.rstudio.com&#34; class=&#34;uri&#34;&gt;http://rmarkdown.rstudio.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can embed an R code chunk like this:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00
fit &amp;lt;- lm(dist ~ speed, data = cars)
fit
## 
## Call:
## lm(formula = dist ~ speed, data = cars)
## 
## Coefficients:
## (Intercept)        speed  
##     -17.579        3.932&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id=&#34;including-plots&#34; class=&#34;section level1&#34;&gt;
&lt;h1&gt;Including Plots&lt;/h1&gt;
&lt;p&gt;You can also embed plots. See Figure &lt;a href=&#34;#fig:pie&#34;&gt;1&lt;/a&gt; for example:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;par(mar = c(0, 1, 0, 1))
pie(
  c(280, 60, 20),
  c(&amp;#39;Sky&amp;#39;, &amp;#39;Sunny side of pyramid&amp;#39;, &amp;#39;Shady side of pyramid&amp;#39;),
  col = c(&amp;#39;#0292D8&amp;#39;, &amp;#39;#F7EA39&amp;#39;, &amp;#39;#C4B632&amp;#39;),
  init.angle = -50, border = NA
)&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;figure&#34;&gt;&lt;span style=&#34;display:block;&#34; id=&#34;fig:pie&#34;&gt;&lt;/span&gt;
&lt;img src=&#34;https://achalmed.github.io/post/2020-12-01-r-rmarkdown/index.en_files/figure-html/pie-1.png&#34; alt=&#34;A fancy pie chart.&#34; width=&#34;672&#34; /&gt;
&lt;p class=&#34;caption&#34;&gt;
Figure 1: A fancy pie chart.
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
</description>
    </item>
    
    <item>
      <title>An example preprint / working paper</title>
      <link>https://achalmed.github.io/publication/preprint/</link>
      <pubDate>Sun, 07 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/publication/preprint/</guid>
      <description>&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Create your slides in Markdown - click the &lt;em&gt;Slides&lt;/em&gt; button to check out the example.
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Supplementary notes can be added here, including &lt;a href=&#34;https://wowchemy.com/docs/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;code, math, and images&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Display Jupyter Notebooks with Academic</title>
      <link>https://achalmed.github.io/post/jupyter/</link>
      <pubDate>Tue, 05 Feb 2019 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/post/jupyter/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;from&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;IPython.core.display&lt;/span&gt; &lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Image&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;Image&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;https://www.python.org/static/community_logos/python-logo-master-v3-TM-flattened.png&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;d-flex justify-content-center&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img src=&#34;./index_1_0.png&#34; alt=&#34;png&#34; loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;Welcome to Academic!&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;Welcome to Academic!
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;install-python-and-jupyterlab&#34;&gt;Install Python and JupyterLab&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://www.anaconda.com/distribution/#download-section&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Install Anaconda&lt;/a&gt; which includes Python 3 and JupyterLab.&lt;/p&gt;
&lt;p&gt;Alternatively, install JupyterLab with &lt;code&gt;pip3 install jupyterlab&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;create-or-upload-a-jupyter-notebook&#34;&gt;Create or upload a Jupyter notebook&lt;/h2&gt;
&lt;p&gt;Run the following commands in your Terminal, substituting &lt;code&gt;&amp;lt;MY-WEBSITE-FOLDER&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;SHORT-POST-TITLE&amp;gt;&lt;/code&gt; with the file path to your Academic website folder and a short title for your blog post (use hyphens instead of spaces), respectively:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir -p &amp;lt;MY-WEBSITE-FOLDER&amp;gt;/content/post/&amp;lt;SHORT-POST-TITLE&amp;gt;/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; &amp;lt;MY-WEBSITE-FOLDER&amp;gt;/content/post/&amp;lt;SHORT-POST-TITLE&amp;gt;/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;jupyter lab index.ipynb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;jupyter&lt;/code&gt; command above will launch the JupyterLab editor, allowing us to add Academic metadata and write the content.&lt;/p&gt;
&lt;h2 id=&#34;edit-your-post-metadata&#34;&gt;Edit your post metadata&lt;/h2&gt;
&lt;p&gt;The first cell of your Jupter notebook will contain your post metadata (&lt;a href=&#34;https://sourcethemes.com/academic/docs/front-matter/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;front matter&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;In Jupter, choose &lt;em&gt;Markdown&lt;/em&gt; as the type of the first cell and wrap your Academic metadata in three dashes, indicating that it is YAML front matter:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;---
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;title: My post&amp;#39;s title
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;date: 2019-09-01
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;# Put any other Academic metadata here...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;---
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Edit the metadata of your post, using the &lt;a href=&#34;https://sourcethemes.com/academic/docs/managing-content&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;documentation&lt;/a&gt; as a guide to the available options.&lt;/p&gt;
&lt;p&gt;To set a &lt;a href=&#34;https://sourcethemes.com/academic/docs/managing-content/#featured-image&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;featured image&lt;/a&gt;, place an image named &lt;code&gt;featured&lt;/code&gt; into your post&amp;rsquo;s folder.&lt;/p&gt;
&lt;p&gt;For other tips, such as using math, see the guide on &lt;a href=&#34;https://wowchemy.com/docs/content/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;writing content with Academic&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;convert-notebook-to-markdown&#34;&gt;Convert notebook to Markdown&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;jupyter nbconvert index.ipynb --to markdown --NbConvertApp.output_files_dir&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;example&#34;&gt;Example&lt;/h2&gt;
&lt;p&gt;This post was created with Jupyter. The orginal files can be found at &lt;a href=&#34;https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/post/jupyter&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/post/jupyter&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Slides</title>
      <link>https://achalmed.github.io/slides/example/</link>
      <pubDate>Tue, 05 Feb 2019 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/slides/example/</guid>
      <description>&lt;h1 id=&#34;create-slides-in-markdown-with-wowchemy&#34;&gt;Create slides in Markdown with Wowchemy&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://wowchemy.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Wowchemy&lt;/a&gt; | &lt;a href=&#34;https://wowchemy.com/docs/content/slides/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Documentation&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;features&#34;&gt;Features&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Efficiently write slides in Markdown&lt;/li&gt;
&lt;li&gt;3-in-1: Create, Present, and Publish your slides&lt;/li&gt;
&lt;li&gt;Supports speaker notes&lt;/li&gt;
&lt;li&gt;Mobile friendly slides&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;controls&#34;&gt;Controls&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Next: &lt;code&gt;Right Arrow&lt;/code&gt; or &lt;code&gt;Space&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Previous: &lt;code&gt;Left Arrow&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Start: &lt;code&gt;Home&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Finish: &lt;code&gt;End&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Overview: &lt;code&gt;Esc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Speaker notes: &lt;code&gt;S&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Fullscreen: &lt;code&gt;F&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Zoom: &lt;code&gt;Alt + Click&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://revealjs.com/pdf-export/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;PDF Export&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;code-highlighting&#34;&gt;Code Highlighting&lt;/h2&gt;
&lt;p&gt;Inline code: &lt;code&gt;variable&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Code block:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;porridge&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;blueberry&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;porridge&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;==&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;blueberry&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;Eating...&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id=&#34;math&#34;&gt;Math&lt;/h2&gt;
&lt;p&gt;In-line math: $x + y = z$&lt;/p&gt;
&lt;p&gt;Block math:&lt;/p&gt;
&lt;p&gt;$$
f\left( x \right) = ;\frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}}
$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;fragments&#34;&gt;Fragments&lt;/h2&gt;
&lt;p&gt;Make content appear incrementally&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{% fragment %}} One {{% /fragment %}}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{% fragment %}} **Two** {{% /fragment %}}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{% fragment %}} Three {{% /fragment %}}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Press &lt;code&gt;Space&lt;/code&gt; to play!&lt;/p&gt;
&lt;span class=&#34;fragment &#34; &gt;
  One
&lt;/span&gt;
&lt;span class=&#34;fragment &#34; &gt;
  &lt;strong&gt;Two&lt;/strong&gt;
&lt;/span&gt;
&lt;span class=&#34;fragment &#34; &gt;
  Three
&lt;/span&gt;
&lt;hr&gt;
&lt;p&gt;A fragment can accept two optional parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;class&lt;/code&gt;: use a custom style (requires definition in custom CSS)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;weight&lt;/code&gt;: sets the order in which a fragment appears&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;speaker-notes&#34;&gt;Speaker Notes&lt;/h2&gt;
&lt;p&gt;Add speaker notes to your presentation&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{% speaker_note %}}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; Only the speaker can read these notes
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; Press &lt;span class=&#34;sb&#34;&gt;`S`&lt;/span&gt; key to view
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  {{% /speaker_note %}}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Press the &lt;code&gt;S&lt;/code&gt; key to view the speaker notes!&lt;/p&gt;
&lt;aside class=&#34;notes&#34;&gt;
  &lt;ul&gt;
&lt;li&gt;Only the speaker can read these notes&lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;S&lt;/code&gt; key to view&lt;/li&gt;
&lt;/ul&gt;

&lt;/aside&gt;
&lt;hr&gt;
&lt;h2 id=&#34;themes&#34;&gt;Themes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;black: Black background, white text, blue links (default)&lt;/li&gt;
&lt;li&gt;white: White background, black text, blue links&lt;/li&gt;
&lt;li&gt;league: Gray background, white text, blue links&lt;/li&gt;
&lt;li&gt;beige: Beige background, dark text, brown links&lt;/li&gt;
&lt;li&gt;sky: Blue background, thin dark text, blue links&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;ul&gt;
&lt;li&gt;night: Black background, thick white text, orange links&lt;/li&gt;
&lt;li&gt;serif: Cappuccino background, gray text, brown links&lt;/li&gt;
&lt;li&gt;simple: White background, black text, blue links&lt;/li&gt;
&lt;li&gt;solarized: Cream-colored background, dark green text, blue links&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;

&lt;section data-noprocess data-shortcode-slide
  
      
      data-background-image=&#34;/media/boards.jpg&#34;
  &gt;

&lt;h2 id=&#34;custom-slide&#34;&gt;Custom Slide&lt;/h2&gt;
&lt;p&gt;Customize the slide style and background&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;slide&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;background-image&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;/media/boards.jpg&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;}}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;slide&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;background-color&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;#0000FF&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;}}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;slide&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;class&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;my-style&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;}}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id=&#34;custom-css-example&#34;&gt;Custom CSS Example&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s make headers navy colored.&lt;/p&gt;
&lt;p&gt;Create &lt;code&gt;assets/css/reveal_custom.css&lt;/code&gt; with:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-css&#34; data-lang=&#34;css&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;reveal&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;section&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;h1&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;reveal&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;section&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;h2&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;reveal&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;section&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;h3&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;color&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;navy&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h1 id=&#34;questions&#34;&gt;Questions?&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://discord.gg/z8wNYzb&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Ask&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://wowchemy.com/docs/content/slides/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Documentation&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Privacy Policy</title>
      <link>https://achalmed.github.io/privacy/</link>
      <pubDate>Thu, 28 Jun 2018 00:00:00 +0100</pubDate>
      <guid>https://achalmed.github.io/privacy/</guid>
      <description>&lt;p&gt;Add your privacy policy here and set &lt;code&gt;draft: false&lt;/code&gt; to publish it. Otherwise, delete this file if you don&amp;rsquo;t need it.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Terms</title>
      <link>https://achalmed.github.io/terms/</link>
      <pubDate>Thu, 28 Jun 2018 00:00:00 +0100</pubDate>
      <guid>https://achalmed.github.io/terms/</guid>
      <description>&lt;p&gt;Add your terms here and set &lt;code&gt;draft: false&lt;/code&gt; to publish it. Otherwise, delete this file if you don&amp;rsquo;t need it.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Example Project</title>
      <link>https://achalmed.github.io/project/example/</link>
      <pubDate>Wed, 27 Apr 2016 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/project/example/</guid>
      <description>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.&lt;/p&gt;
&lt;p&gt;Nullam vel molestie justo. Curabitur vitae efficitur leo. In hac habitasse platea dictumst. Sed pulvinar mauris dui, eget varius purus congue ac. Nulla euismod, lorem vel elementum dapibus, nunc justo porta mi, sed tempus est est vel tellus. Nam et enim eleifend, laoreet sem sit amet, elementum sem. Morbi ut leo congue, maximus velit ut, finibus arcu. In et libero cursus, rutrum risus non, molestie leo. Nullam congue quam et volutpat malesuada. Sed risus tortor, pulvinar et dictum nec, sodales non mi. Phasellus lacinia commodo laoreet. Nam mollis, erat in feugiat consectetur, purus eros egestas tellus, in auctor urna odio at nibh. Mauris imperdiet nisi ac magna convallis, at rhoncus ligula cursus.&lt;/p&gt;
&lt;p&gt;Cras aliquam rhoncus ipsum, in hendrerit nunc mattis vitae. Duis vitae efficitur metus, ac tempus leo. Cras nec fringilla lacus. Quisque sit amet risus at ipsum pharetra commodo. Sed aliquam mauris at consequat eleifend. Praesent porta, augue sed viverra bibendum, neque ante euismod ante, in vehicula justo lorem ac eros. Suspendisse augue libero, venenatis eget tincidunt ut, malesuada at lorem. Donec vitae bibendum arcu. Aenean maximus nulla non pretium iaculis. Quisque imperdiet, nulla in pulvinar aliquet, velit quam ultrices quam, sit amet fringilla leo sem vel nunc. Mauris in lacinia lacus.&lt;/p&gt;
&lt;p&gt;Suspendisse a tincidunt lacus. Curabitur at urna sagittis, dictum ante sit amet, euismod magna. Sed rutrum massa id tortor commodo, vitae elementum turpis tempus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean purus turpis, venenatis a ullamcorper nec, tincidunt et massa. Integer posuere quam rutrum arcu vehicula imperdiet. Mauris ullamcorper quam vitae purus congue, quis euismod magna eleifend. Vestibulum semper vel augue eget tincidunt. Fusce eget justo sodales, dapibus odio eu, ultrices lorem. Duis condimentum lorem id eros commodo, in facilisis mauris scelerisque. Morbi sed auctor leo. Nullam volutpat a lacus quis pharetra. Nulla congue rutrum magna a ornare.&lt;/p&gt;
&lt;p&gt;Aliquam in turpis accumsan, malesuada nibh ut, hendrerit justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque sed erat nec justo posuere suscipit. Donec ut efficitur arcu, in malesuada neque. Nunc dignissim nisl massa, id vulputate nunc pretium nec. Quisque eget urna in risus suscipit ultricies. Pellentesque odio odio, tincidunt in eleifend sed, posuere a diam. Nam gravida nisl convallis semper elementum. Morbi vitae felis faucibus, vulputate orci placerat, aliquet nisi. Aliquam erat volutpat. Maecenas sagittis pulvinar purus, sed porta quam laoreet at.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>External Project</title>
      <link>https://achalmed.github.io/project/external-project/</link>
      <pubDate>Wed, 27 Apr 2016 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/project/external-project/</guid>
      <description></description>
    </item>
    
    <item>
      <title>An example journal article</title>
      <link>https://achalmed.github.io/publication/journal-article/</link>
      <pubDate>Tue, 01 Sep 2015 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/publication/journal-article/</guid>
      <description>&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Click the &lt;em&gt;Cite&lt;/em&gt; button above to demo the feature to enable visitors to import publication metadata into their reference management software.
  &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Create your slides in Markdown - click the &lt;em&gt;Slides&lt;/em&gt; button to check out the example.
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Supplementary notes can be added here, including &lt;a href=&#34;https://wowchemy.com/docs/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;code, math, and images&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>An example conference paper</title>
      <link>https://achalmed.github.io/publication/conference-paper/</link>
      <pubDate>Mon, 01 Jul 2013 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/publication/conference-paper/</guid>
      <description>&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Click the &lt;em&gt;Cite&lt;/em&gt; button above to demo the feature to enable visitors to import publication metadata into their reference management software.
  &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;alert alert-note&#34;&gt;
  &lt;div&gt;
    Create your slides in Markdown - click the &lt;em&gt;Slides&lt;/em&gt; button to check out the example.
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Supplementary notes can be added here, including &lt;a href=&#34;https://wowchemy.com/docs/writing-markdown-latex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;code, math, and images&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title></title>
      <link>https://achalmed.github.io/admin/config.yml</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://achalmed.github.io/admin/config.yml</guid>
      <description></description>
    </item>
    
  </channel>
</rss>
