Learn R Programming

mapscanner (version 0.1.1)

ms_rotate_map: Rotate maps

Description

Display original and modified maps to determine necessary rotation

Usage

ms_rotate_map(map_original, map_modified, rotation = 0, apply_rotation = FALSE)

Value

No return value. Function either modifies files on disk by rotating images by the specified amount (if apply_rotation = TRUE), or displays a rotated version of map_original (if apply_rotation = FALSE).

Arguments

map_original

File name of the original map without anything drawn over it (either a .pdf or .png; extension will be ignored).

map_modified

File name of the modified version with drawings (either a .pdf or .png; extension will be ignored).

rotation

Rotation value to be applied, generally +/- 90

apply_rotation

If FALSE, display results of rotation without actually applying it; otherwise transform the specified map_modified image according to the specified rotation.