Main content
Closing the eye-tracking gap in reading research
Date created: | Last Updated:
: DOI | ARK
Creating DOI. Please wait...
Category: Project
Description: R scripts used to generate Figure 1 of the manuscript. We provide code for three different versions of Figure 1 (reflecting the three different types of cartograms available in the cartogram package): Contiguous cartogram (make maps for publication analysis.R), non-contiguous cartogram (make maps for publication analysis_revised_non_contiguous.R), and non-overlapping circles (make maps for publication analysis_revised_circles.R). In order to run the code, place all scripts in a new directory. Place all CSV files in a subdirectory called "eye_movement_publication_statistics"). Make sure that the directory with the scripts is the current R working directory, e.g., by making it the root directory of a new RStudio project. Make sure the packages countrycode, cartogram, sf, tmap, and ggpubr are installed. Warning messages during the run are due to missing country information in the publication data. Example output files in PDF format are provided.