subchunkify: Function to create different heights and widths in RMarkdown...

View source: R/subchunkify.R

subchunkifyR Documentation

Function to create different heights and widths in RMarkdown Code Chunks which are Created automatically

Description

Taken from StackOverflow.

Usage

subchunkify(
  g,
  fig.height = 7,
  fig.width = 5,
  dpi = 72,
  echo = FALSE,
  message = FALSE,
  warning = FALSE
)

Arguments

g

A plot.

fig.height

The Figure height as in an RMarkdown document.

fig.width

The Figure width as in an RMarkdown document.

dpi

Dots per inch for figure.

echo

As in an RMarkdown document.

message

As in an RMarkdown document.

warning

As in an RMarkdown document.

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

subchunkify(plot(iris, Sepal.Length ~ Sepal.Width))


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.