knitr::opts_chunk$set(echo = FALSE,
                      fig.retina=3,
                      #out.width = "100%",
                      cache = FALSE,
                      message = FALSE, 
                      warning = FALSE,
                      fig.show = TRUE,
                      hiline = TRUE)

library(palmerpenguins)
library(ksnet)
library(dplyr)
library(ggplot2)
library(xaringanthemer)
style_mono_accent(
  base_color = "#00b2a9",
  header_font_google = google_font("Public Sans"),
  text_font_google   = google_font("Public Sans"),
  code_font_google   = google_font("Fira Mono")
)

Presentación KSNET

Esta es una presentación KSNET. Se puede incluir texto en negrita y también en cursiva. También se puede incluir texto con formato de código.


class: inverse

Colores inversos

Esta es una slide con colores inversos

  1. Y esto una lista numerada

  2. Segundo punto

  3. Tercer punto


class: inverse center middle

Color inverso, centrado

Esta es una slide con colores inversos, y con el texto centrado.


Citas

También se puede incluir texto en forma de cita:

Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. - Donald Knuth

--

Con dos guiones, se puede crear texto que aparezca secuencialmente.


Tablas con estilo

En la presentación se pueden incluir tablas también:

penguins %>%
    head(5) %>%
    ksnet_table()

...y gráficas

penguins %>%
    ggplot(aes(x = species, fill = species)) +
    geom_bar() +
    theme_ksnet() +
    facet_wrap(~sex) +
    scale_fill_ksnet_discrete() +
    labs(title = "KSNET") +
    guides(fill = "none")

Dos columnas

.pull-left[

]

.pull-right[

]


Dos columnas, con gráfico

.pull-left[

]

.pull-right[

penguins %>%
    ggplot(aes(x = species, fill = species)) +
    geom_bar() +
    theme_ksnet() +
    scale_fill_ksnet_discrete() +
    labs(title = "KSNET")

]


class: inverse center middle

Gracias!

knitr::include_graphics("logo.png") 


octmedina/ksnet documentation built on April 18, 2023, 3:34 p.m.