create_map_file: Create map file

View source: R/create_map_file.R

create_map_fileR Documentation

Create map file

Description

Creates a .png map with the assigned file prefix in the designated file path (i.e. directory)

Usage

create_map_file(
  x,
  file.prefix = NA,
  file.path = NA,
  try.change_text_size = FALSE,
  width = 12,
  height = 9,
  units = "in",
  res = 300,
  bg = "transparent"
)

Arguments

x

List containing ggplot object

file.prefix

Character vector indicating what name should precede the file name. If not provided, uses key.title from the output of make_idw_map

file.path

File path where the png should be saved. By default, Saves to working directory.

try.change_text_size

Logical indicating whether labels of the input list should be resized using predefined scaling factors.

width

Width of the .png. Passed to png.

height

Height of the .png. Passed to png.

units

Units of width and height. Passed to png.

res

Resolution of the output. Passed to png.

bg

Color of the background. Passed to png.


afsc-gap-products/akgfmaps documentation built on April 14, 2025, 7:13 p.m.