Learn R Programming

docxtools (version 0.1.0)

put_axes: 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

Value

Prints the empty axes to the output document.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab