RETO1

Author

Eugenia Cornide

Published

February 5, 2026

Texto en negrita y enlace

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see Proyecto Chamberlin

Texto en cursiva

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

subseccion

The echo: false option disables the printing of code (only output is displayed). (1Lorem ipsum dolor sit amet, consectetur adipiscing elit.)

lista

  • primer ítem
  • segundo ítem
plot(datasets::co2)

library(dplyr)
Warning: package 'dplyr' was built under R version 4.5.2
library(readr)
Warning: package 'readr' was built under R version 4.5.2
library(ggplot2)
library(knitr)
Warning: package 'knitr' was built under R version 4.5.2
stateabb ccode year milex milper irst pec tpop upop cinc
USA 2 1816 3823 17 80 254 8659 101 0.0396975
USA 2 1817 2466 15 80 277 8899 106 0.0358166
USA 2 1818 1910 14 90 302 9139 112 0.0361265
USA 2 1819 2301 13 90 293 9379 118 0.0371332
USA 2 1820 1556 15 110 303 9618 124 0.0370869
USA 2 1821 1612 11 100 321 9939 130 0.0341731
USA 2 1822 1079 10 100 332 10268 136 0.0329391
USA 2 1823 1170 11 110 345 10596 143 0.0331075
USA 2 1824 1261 11 110 390 10924 151 0.0329776
USA 2 1825 1336 11 120 424 11252 158 0.0342150

Tablas y gráficos

nmc |>
  dplyr::select(
    State = stateabb,
    Year = year,
    `Military Expenditure` = milex
  ) |>
  head(10) |>
  knitr::kable()
State Year Military Expenditure
USA 1816 3823
USA 1817 2466
USA 1818 1910
USA 1819 2301
USA 1820 1556
USA 1821 1612
USA 1822 1079
USA 1823 1170
USA 1824 1261
USA 1825 1336

Imágenes

logo uoc

Gráfico

nmc |> 
  filter(stateabb %in% c("ARG", "GUA")) |> 
  ggplot(aes(x = year, y = milex, col = stateabb)) +
  geom_line() +
  labs(title = "Grafico_Prueba")

Footnotes

  1. Nota al pie↩︎