Set of visualization to analyze Brazil's labour accident data.

Mateus Rodrigues 507a5fb595 scatterplot: add tooltips to scatterplot 5 роки тому
app 507a5fb595 scatterplot: add tooltips to scatterplot 5 роки тому
docs 57b1caa6d4 add considerations on the classifications of Agente Causador, CNAE, CBO, and Parte do Corpo Atingida 5 роки тому
scripts 7703a1f83a scripts: add simple scripts to generate projections from data 5 роки тому
.gitignore eff394eafa Ignore R object format '.rds' 6 роки тому
README.org ee0cdcd5d5 Add a bit of explanation to the coding style 6 роки тому

README.org

Repositório de códigos do aplicativo do MPT

Coding Style

R

Javascript (D3 integration)

  • File names end in ".R"
  • Maximum line length is 80 columns
  • Function names are camelCase
  • Variables names are separated by " " like_this
  • Put spaces around binary operators, but not parenthesis. e.g: (3 + 4)
  • Use space after commas. e.g: func(arg1, arg2)
  • Indentation is 4 spaces, no tabs.
  • Opening braces go at end of line, closing go on a line by itself.
  • Above instructions(for R) also apply here
  • Every visualization go in a different ".js" file
  • Use different, representative, variable names for each visualization.
  • Each graph goes in an specific div, named like "var_name_area".
  • Each "js" file has a different customMessageHandler type, named like "var_name_values".