comb2pngs: A function to plot 2 png images as one in a knitr chunk

View source: R/NAME_comb2pngs.R

comb2pngsR Documentation

A function to plot 2 png images as one in a knitr chunk

Description

comb2pngs combines to png images into one, and then plots the combined image.

Usage

comb2pngs(imgs, bottom_text = NULL)

Arguments

imgs

vector of image file names

bottom_text

caption text appearing below the figure

Details

The code of this function was inspired by code from Ben Bolker at https://stackoverflow.com/questions/25415365/insert-side-by-side-png-images-using-knitr

Value

plots images in knitr chunk


sebastiansauer/prada documentation built on Jan. 17, 2024, 11:05 a.m.