Helper function to convert device raster data to a PNG file

convert_device_raster_to_png(args, flip_y = FALSE, debug_items = c())

Arguments

args

arguments to a 'raster' device call

flip_y

whether to flip the image vertically. default: FALSE

debug_items

character vector of names of things to debug

Value

list with 'png_filename' and the RGBA 'array_data' (values in [0, 1])