User:Wizmut

Below is some source code to assist in making tables and graphs.

The language I use is the R (programming language). I sometimes pull data directly from a url, but will download large files or files not directly downloadable.

After I have finalized a csv file, I do some touching up in Excel/Sheets/Libre to get the formatting just right. I then use a tool[1] to convert spreadsheet data into wikitext.

Energy

[edit]

US electricity

[edit]

This code pulls data directly from the Energy Information Administration.

Used in these articles:

US state table code

[edit]

US state map code

[edit]

The following code creates some treemaps and maps of the US that illustrate the data in the tables created above.

World electricity data tables and graphs

[edit]

This code pulls data directly from the Ember (non-profit organisation).

Used in these articles:

Country table code

[edit]

Country map code

[edit]

The following code creates some treemaps and maps of the world that illustrate the data in the tables created above.

Crime and mortality

[edit]

US state crime

[edit]

This code uses data downloaded from the Federal Bureau of Investigation.

Used in these articles:

US state death

[edit]

This code uses data downloaded from the Centers for Disease Control.

Used in these articles:

US county death

[edit]

This code uses data downloaded from County Health Rankings.[2]

Used in these articles: