아름다운 표

Tidyverse로 데이터 소통하기

Timo Grossenbacher

Data Journalist

Tidyverse로 데이터 소통하기

Tidyverse로 데이터 소통하기

YAML 헤더로 해결하기!

 ---
 title: "The reduction in weekly working hours in Europe" 
 subtitle: "Looking at the development between 1996 and 2006"
 author: "Timo Grossenbacher"
 output: 
   html_document:
     theme: cosmo
     highlight: monochrome
     toc: true
     toc_float: false
     toc_depth: 4
     code_folding: hide
     css: styles.css

df_print: kable ---
    df_print: paged
 ---
Tidyverse로 데이터 소통하기

두 번째 방법

# Some summary statistics
ilo_data %>%
  filter(country == "Switzerland" & year > 2000) %>% 

knitr::kable()

Tidyverse로 데이터 소통하기

표 스타일 지정

<table>
  <thead>
   ...
  </thead>
  <tbody>
   ...
  </tbody>
</table>
Tidyverse로 데이터 소통하기

표 스타일 지정

<table>
  <thead>
   <tr>
     ...
   </tr>
  </thead>
  <tbody>
   <tr>
     ...
   </tr>
   <tr>
     ...
   </tr>
  </tbody>
</table>
Tidyverse로 데이터 소통하기

표 스타일 지정

<table>
  <thead>
   <tr>
     <th>Column 1</th><th>Column 2</th>
   </tr>
  </thead>
  <tbody>
   <tr>
     <td>Cell 1</td><td>Cell 2</td>
   </tr>
   <tr>
     ...
   </tr>
  </tbody>
</table>
Tidyverse로 데이터 소통하기

연습해 봅시다!

Tidyverse로 데이터 소통하기

Preparing Video For Download...