put_axes: Insert a two-dimensional coordinate axes in a document.

Description Usage Arguments Details Value Examples

View source: R/put_axes.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

docxtools documentation built on July 2, 2020, 3:16 a.m.