make_frame {simts} | R Documentation |
Default utility function for various plots titles
Description
Adds title, grid, and required x- and y-axes.
Usage
make_frame(
x_range,
y_range,
xlab,
ylab,
main = "",
mar = c(5.1, 5.1, 1, 2.1),
add_axis_x = TRUE,
add_axis_y = TRUE,
col_box = "black",
col_grid = "grey95",
col_band = "grey95",
col_title = "black",
add_band = TRUE,
title_band_width = 0.09,
grid_lty = 1
)
Arguments
x_range |
A |
y_range |
A |
xlab |
A |
ylab |
A |
main |
A |
mar |
A |
add_axis_x |
A |
add_axis_y |
A |
col_box |
A |
col_grid |
A |
col_band |
A |
col_title |
A |
add_band |
A |
title_band_width |
A |
grid_lty |
A |
Value
Added title, grid, and axes.
Author(s)
Stephane Guerrier and Justin Lee
Examples
make_frame(x_range = c(0, 1), y_range = c(0, 1), xlab = "my xlab",
ylab = "my ylab", main = "my title")
make_frame(x_range = c(0, 1), y_range = c(0, 1), xlab = "my xlab",
ylab = "my ylab", add_band = FALSE)
make_frame(x_range = c(0, 1), y_range = c(0, 1), xlab = "my xlab",
ylab = "my ylab", main = "my title", col_band = "blue3",
col_title = "white", col_grid = "lightblue", grid_lty = 3)
make_frame(x_range = c(0, 1), y_range = c(0, 1), xlab = "my xlab",
ylab = "my ylab", main = "my title", col_band = "blue3",
col_title = "white", col_grid = "lightblue", grid_lty = 3,
title_band_width = 0.18)