Aula 1 - introdução Quarto

Author

Elivane Salete Capellesso

Published

October 3, 2024

Título gigante

Aqui tem que ter espaço entre o # e o texto

Sempre tem que ter um espaço para aparecer como um link

TÍtulo normal

Título menor

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

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

Para colocar uma palavra em negrito e uma palavra em itálico Destacar um texto um texto muito importante

Você pode mudar o layout da pagina no link https://quarto.org/docs/output-formats/html-themes.html

Aqui você pode escrever que via ficar uma caixa de destaque

Inclusive códigos do R - Mas não vão rodar

elivane<-loucura isso

Bloco de notas

Esse vai ser meu bloco de notas*

Elivane é muito inteligente

Fazer uma lista

  • coisas para aprender:
    • Lista
      • R
      • Phyton
      • C++

Inserir caixas de dicas, warnings, etc.

Note

Essa é uma caixa de aviso!

Warning

Essa é uma caixa de ATENÇÃO!

Tip

Essa é uma DICA

Para fazer sua própria caixinha

Dicona

Essa é uma DICA

Inserir imagens

Chezinho, minha estrelinha…

Maia e Missy….

Colocar uma figura da internet

Restauração florestal

Restauração Florestal

Restauração Florestal

Trabalhando com o R

#Para rodar no R

library(tidyverse)

emissions <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2024/2024-05-21/emissions.csv')

head(emissions)
# A tibble: 6 × 7
   year parent_entity     parent_type commodity production_value production_unit
  <dbl> <chr>             <chr>       <chr>                <dbl> <chr>          
1  1962 Abu Dhabi Nation… State-owne… Oil & NGL            0.913 Million bbl/yr 
2  1962 Abu Dhabi Nation… State-owne… Natural …            1.84  Bcf/yr         
3  1963 Abu Dhabi Nation… State-owne… Oil & NGL            1.83  Million bbl/yr 
4  1963 Abu Dhabi Nation… State-owne… Natural …            4.42  Bcf/yr         
5  1964 Abu Dhabi Nation… State-owne… Oil & NGL            7.3   Million bbl/yr 
6  1964 Abu Dhabi Nation… State-owne… Natural …           17.3   Bcf/yr         
# ℹ 1 more variable: total_emissions_MtCO2e <dbl>

Gráfico simples

names(emissions)
[1] "year"                   "parent_entity"          "parent_type"           
[4] "commodity"              "production_value"       "production_unit"       
[7] "total_emissions_MtCO2e"
plot(emissions$total_emissions_MtCO2e~emissions$year)

##Graficos frescos

names(emissions)
[1] "year"                   "parent_entity"          "parent_type"           
[4] "commodity"              "production_value"       "production_unit"       
[7] "total_emissions_MtCO2e"
plot(emissions$total_emissions_MtCO2e~emissions$year)

Figura 1. Emissão de Carbono anual

Echo false significa que não aparece o comando que está gerando o gráfico code-fold aparece como link

##Equações

Para equações no meio do texto, escrevemos entre cifrões: \(2\pi*r^2\)

Para equações ficarem destacadas

\[RE = (1- \frac{Nutr_{old}}{Nutr_{mat}} MLCF)*100\]


Anexando pacote: 'kableExtra'
O seguinte objeto é mascarado por 'package:dplyr':

    group_rows
#| warning: false

tab<-kable(head(emissions))
kable_styling(tab,full_width = F, 
              bootstrap_options = c("striped", "hover", "condensed"))
year parent_entity parent_type commodity production_value production_unit total_emissions_MtCO2e
1962 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 0.91250 Million bbl/yr 0.3638848
1962 Abu Dhabi National Oil Company State-owned Entity Natural Gas 1.84325 Bcf/yr 0.1343552
1963 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 1.82500 Million bbl/yr 0.7277697
1963 Abu Dhabi National Oil Company State-owned Entity Natural Gas 4.42380 Bcf/yr 0.3224525
1964 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 7.30000 Million bbl/yr 2.9110786
1964 Abu Dhabi National Oil Company State-owned Entity Natural Gas 17.32655 Bcf/yr 1.2629390
tab
year parent_entity parent_type commodity production_value production_unit total_emissions_MtCO2e
1962 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 0.91250 Million bbl/yr 0.3638848
1962 Abu Dhabi National Oil Company State-owned Entity Natural Gas 1.84325 Bcf/yr 0.1343552
1963 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 1.82500 Million bbl/yr 0.7277697
1963 Abu Dhabi National Oil Company State-owned Entity Natural Gas 4.42380 Bcf/yr 0.3224525
1964 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 7.30000 Million bbl/yr 2.9110786
1964 Abu Dhabi National Oil Company State-owned Entity Natural Gas 17.32655 Bcf/yr 1.2629390

Fazer abas

Figura 1. Frequencia das entidades emissoras de carbono
Tabela 1. Emissões de carbono anual
year parent_entity parent_type commodity production_value production_unit total_emissions_MtCO2e
1962 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 0.91250 Million bbl/yr 0.3638848
1962 Abu Dhabi National Oil Company State-owned Entity Natural Gas 1.84325 Bcf/yr 0.1343552
1963 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 1.82500 Million bbl/yr 0.7277697
1963 Abu Dhabi National Oil Company State-owned Entity Natural Gas 4.42380 Bcf/yr 0.3224525
1964 Abu Dhabi National Oil Company State-owned Entity Oil & NGL 7.30000 Million bbl/yr 2.9110786
1964 Abu Dhabi National Oil Company State-owned Entity Natural Gas 17.32655 Bcf/yr 1.2629390