Handling your .bib file (LaTex bibliography)

This post was originally published here

To create a .bib file that only includes the citations you used in the manuscript:

bibexport -o extracted_file.bib manuscript.aux

There are a few issues with this though. The command bibexport comes with the installation of TexLive, but my Windows computer (bless) does not cooperate (“bibexport is not recognised as an internal or external command…”) . So I can only use it on my Mac (luv ya).

Get data from ggplot()

This post was originally published here

ggplot includes built in and seamless functionality that summarises your data before plotting it. As shown in the example below, ggplot_build() can be used to access the summarised dataset.

summarised_barplot

R: ISO codes and country names

This post was originally published here

install.packages(‘maps’)

Adding a Cron job using the ed editor

This post was originally published here

These commands (after the first one) work in the ed editor. ed editor is used in the RStudio server shell.

In this example the script will run every 0 hours, 30 minutes, see Ubuntu: How do I set up a CRON job for other options.

Adding space between rows in LaTex tables

This post was originally published here

By default, LaTex tables are very tight:

Adding this to the document preamble will add space between the rows:

And this command can be used to add space between rows manually:

My minimal LaTex preamble

This post was originally published here

My minimal example: