class: center, middle, inverse, title-slide # Rmarkdown ## ⚔ ### Duvan Nieves ### 07 noviembre, 2021 --- class: inverse,center, middle # Alcance ![](picture/rmkn.jpeg) --- # Manejo básico ## Escritura * Títulos ```r # Título 1 ## Título 2 ### Título 3 #### Título 4 ##### Título 3 .... ..... ``` --- # Manejo básico ## Escritura * Viñetas ```r - Viñeta 1 - Viñeta 2 - Subviñeta 2.1 - Viñeta 3 * Viñeta 1 * Viñeta 2 * Subviñeta 2.1 * Viñeta 3 + Viñeta 1 + Viñeta 2 + Subviñeta 2.1 + Viñeta 3 ``` --- # Manejo básico ## Escritura * Insertar imágenes ```r ![](picture.png) ``` * Insertar vínculos ```r https://siata.gov.co/siata_nuevo/ [SIATA](https://siata.gov.co/siata_nuevo/) ``` * Nota de pie de página ```r Una nota de pie de página, forma corta[^1] y forma larga[^notag]. [^1]: Primera nota. [^notag]: Segunda nota. ``` --- # Manejo básico ## Escritura * Negrilla ```r *Texto* _Texto_ ``` * Cursiva ```r **Texto** __Texto__ ``` * Cursiva negrilla ```r ***Texto*** ___Texto___ ``` --- # Manejo básico ## Escritura * Subíndice ```r superíndice~2~ ``` * Superíndice ```r superíndice^2^ ``` * Ecuaciones en linea ```r $A = \pi*r^{2}$ ``` * Ecuaciones centradas ```r $$A = \pi*r^{2}$$ ``` --- # Manejo básico ## Escritura * Tablas ```r | Tables | Are | Cool | |----------|:-------------:|------:| | col 1 is | left-aligned | $1600 | | col 2 is | centered | $12 | | col 3 is | right-aligned | $1 | ``` * Comentarios ```r <!-- Esto es un comentario --> ``` --- # Manejo básico ## Lenguajes de código ```r names(knitr::knit_engines$get()) ``` ``` [1] "awk" "bash" "coffee" "gawk" "groovy" "haskell" [7] "lein" "mysql" "node" "octave" "perl" "psql" [13] "Rscript" "ruby" "sas" "scala" "sed" "sh" [19] "stata" "zsh" "highlight" "Rcpp" "tikz" "dot" [25] "c" "cc" "fortran" "fortran95" "asy" "cat" [31] "asis" "stan" "block" "block2" "js" "css" [37] "sql" "go" "python" "julia" "sass" "scss" [43] "R" "bslib" ``` --- # Manejo básico ## Lenguajes de código ![](picture/chuncks.png) --- class: inverse,center, middle # Formatos --- ## Estructura ![](picture/rmarkdownflow.png) ## YAML ```r --- title: "Untitled" author: "Cadatos" date: "8/10/2021" output: html_document --- ``` --- ## Formatos básicos ```r title: "Untitled" author: "Siata-Calidad" date: "6/10/2021" output: **Formato** ``` ```r > output: md_document --> Archivo markdown > output: html_document --> Archivo html (página web) > output: pdf_document --> Archivo pdf > output: rtf_document --> Archivo Rich Text > output: odt_document --> Archivo openDocumnet > output: word_document --> Microsoft Word.docx > output: ioslides_presentation --> Presentación ioslides (html) > output: slidy_presentation --> Presentación slidy (html) > output: beamer_presentation --> Presentación beamer (pdf) > output: powerpoint_presentation --> Presetación ppt ``` --- class: inverse,center, middle # Ejercicio --- ### Markdown ```r --- output: md_document --- ``` ![](./picture/md_format.gif) --- ### Html ```r --- output: html_document --- ``` ![](./picture/html_format.gif) --- ### PDF ```r --- output: pdf_document --- ``` Para crear un documento pdf requerimos de la librería `tinytex` y de un instalación adicional que se aloja en la librería. ```r install.packages("tinytex") tinytex::install_tinytex() ``` <img src="./picture/tinytext.png" width="20%" style="display: block; margin: auto;" /> --- ### PDF ```r --- output: pdf_document --- ``` ![](./picture/pdf_format.gif) --- ### WORD ```r --- output: word_document --- ``` ![](./picture/word_format.gif) --- ### IOSLIDES ```r --- output: ioslides_presentation --- ``` ![](./picture/ioslides_format.gif) --- ### SLIDY ```r --- output: slidy_presentation --- ``` ![](./picture/slidy_format.gif) --- ### BEAMER ```r --- output: beamer_presentation --- ``` ![](./picture/beamer_format.gif) --- ### POWERPOINT ```r --- output: powerpoint_presentation --- ``` ![](./picture/pptx_format.gif) --- class: inverse,center, middle # Otros formatos --- ## Presentaciones, sitios web y libros. ```r > output: xaringan::moon_reader > site: bookdown::bookdown_site documentclass: book > name: "my-website" navbar: title: "My Website" left: - text: "Home" href: index.html - text: "About" href: about.html ``` > [Ejemplo sitio web](https://duvancho321.github.io/Material-Unal/index.html) > [Vídeo tutorial página web](https://www.youtube.com/watch?v=JxsreeFsu8g) > [Guia creación página web](https://bookdown.org/yihui/rmarkdown/websites.html) > [Guia creación libros](https://bookdown.org/yihui/rmarkdown/books.html) --- ## Artículos académicos ```r rticles::journals() ``` ``` [1] "acm" "acs" "aea" "agu" [5] "ajs" "amq" "ams" "arxiv" [9] "asa" "bioinformatics" "biometrics" "copernicus" [13] "ctex" "elsevier" "frontiers" "glossa" [17] "ieee" "ims" "jasa" "jedm" [21] "joss" "jss" "lipics" "mdpi" [25] "mnras" "oup" "peerj" "pihph" [29] "plos" "pnas" "rjournal" "rsos" [33] "rss" "sage" "sim" "springer" [37] "tf" ``` --- ## Dashboard ```r --- title: "Untitled" output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: fill --- ``` --- # Plataformas educativas .pull-left[ 1. [Datacamp](https://www.datacamp.com/) 1. [Coursera](https://es.coursera.org/) 1. [edx](https://www.edx.org/es) 1. [Udemy](https://www.udemy.com/) 1. [Lynda](https://www.lynda.com/) ] .pull-right[ 1. [Codecademy](https://www.codecademy.com/) 1. [Udacity](https://www.udacity.com/) 1. [w3schools](https://www.w3schools.com/) 1. [Programmr](http://www.programmr.com/) 1. [CODE AVENGERS](https://www.codeavengers.com/) ] --- # Recursos generales .pull-left[ * [R para principiantes](https://cran.r-project.org/doc/contrib/rdebuts_es.pdf) * [Métodos estadísticos con R y R Commander](https://cran.r-project.org/doc/contrib/Saez-Castillo-RRCmdrv21.pdf) * [Gráficos estadísticos con R](https://cran.r-project.org/doc/contrib/grafi3.pdf) * [Cheat Sheet R](https://rstudio.com/resources/cheatsheets/) * [R-Exercises](https://www.r-exercises.com/) * [R for Data Science](https://es.r4ds.hadley.nz/) ] .pull-right[ * [Practice Python](https://www.practicepython.org/) * [Towards Data Science](https://towardsdatascience.com/) * [TinyStats](https://tinystats.github.io/teacups-giraffes-and-statistics/01_introToR.html) * [Aplicaciones ML](https://github.com/firmai/industry-machine-learning/blob/master/README.md) * [Compilador online](https://rextester.com/) ] --- #Comunidades 1. [Python Colombia](https://www.python.org.co/) 1. [PyLadies Medellín](https://www.meetup.com/es-ES/Python-Ladies-Medellin/) 1. [Women Who Code Medellín](https://www.womenwhocode.com/medellin) 1. [She Codes Angular Medellín](https://www.meetup.com/es-ES/Python-Ladies-Medellin/) 1. [R-Ladies Medellín](https://www.meetup.com/es/rladies-medellin/) 1. [DATA SCIENCE FEM](https://www.datasciencefem.com/) --- class: center, middle #Gracias! ![](../AMET/avatarc.png) .pull-down[ <a href="https://duvancho321.github.io/"> .white[
duvancho321.github.io] </a> <a href="https://twitter.com/DuvanNievesRui1"> .white[
@DuvanNievesRui1] </a> <a href="https://github.com/Duvancho321"> .white[
@Duvancho321] </a> <a href="https://rpubs.com/duvancho321_"> .white[
RPubs] </a> ]