Add Grids to Multiple png

Usage

gridify(path = ".", out = file.path(path, "out"), columns = 20, rows = columns, parallel = FALSE, 
  cores = detectCores()/2, width = 480, height = 480, text.color = "gray60", text.size = 3, 
      grid.color = text.color, ...)

Arguments

path
Path to the in directory with the png files.
out
Path to the out directory.
columns
The number of grid columns.
rows
The number of grid rows.
parallel
logical. If TRUE attempts to run the function on multiple cores. Note that this may not mean a speed boost if you have one core or if the data set is smaller as the cluster takes time to create.
cores
The number of cores to use if parallel = TRUE. Default is half the number of available cores.
width
The width of the device.
height
The height of the device.
text.color
The color to make the coordinate labels.
text.size
The size of the coordinate labels.
grid.color
The color to make the grid.
...
other arguments passed to png.

Value

Returns multiple png files with grid lines.

Description

A wrapper function for grid_calc and plot_grid used to read in a directory of png files. Add grid lines. Output to directory.

Examples

deb <- system.file("extdata", package = "embodied") gridify(deb, "out")
Warning message: 'C:\Users\trinker\GitHub\embodied\out' already exists Grid files plotted to: out

See also

plot_grid