put_axes {docxtools}R Documentation

Insert a two-dimensional coordinate axes in a document.

Description

Creates an empty, 2-dimensional, coordinate axes using ggplot2: no scales, no tick marks, no axis labels.

Usage

put_axes(quadrant = NULL, col = NULL, size = NULL)

Arguments

quadrant

: The quadrant to plot, 1, 2, 3, 4, or 0 for all four. Default is the first quadrant.

col

: Line color, default is "gray60".

size

: Line width, default is 0.5.

Details

The size of the figure is determined when printed, e.g., using knitr in an R Markdown script, the figure height in inches is set with the fig.height code chunk option.

Value

The empty axes.

Examples

put_axes()
put_axes(quadrant = 0)
put_axes(col = "red")
put_axes(size = 1)

## Not run: 
# In an R Markdown script
```{r fig.height = 3.2}
put_axes()
```
## End(Not run)


[Package docxtools version 0.2.2 Index]