View source: R/visualization.R
new_layout_config | R Documentation |
S3 class for configuring plot layout including dimensions, margins, grids and coordinate systems.
new_layout_config(
width = 8,
height = 8,
dpi = 300,
aspect_ratio = 1,
show_grid = TRUE,
grid_type = "major",
grid_color = "grey80",
grid_linetype = "dashed",
show_axis = TRUE,
axis_lines = TRUE,
plot_margin = margin(1, 1, 1, 1, "cm"),
coord_type = "fixed",
background_color = "white",
panel_background_color = "white",
panel_border = TRUE,
panel_border_color = "black",
save_plot = FALSE,
save_format = "png",
reverse_x = 1,
reverse_y = 1,
x_limits = NULL,
y_limits = NULL,
arrow_plot_threshold = 0.1
)
width |
Plot width in inches |
height |
Plot height in inches |
dpi |
Plot resolution |
aspect_ratio |
Plot aspect ratio |
show_grid |
Show plot grid |
grid_type |
Grid type ("none", "major", "minor", "both") |
grid_color |
Grid color |
grid_linetype |
Grid line type |
show_axis |
Show axes |
axis_lines |
Show axis lines |
plot_margin |
Plot margins in cm |
coord_type |
Coordinate type ("fixed", "equal", "flip", "polar") |
background_color |
Plot background color |
panel_background_color |
Panel background color |
panel_border |
Show panel border |
panel_border_color |
Panel border color |
save_plot |
Logical. Whether to save the plot to a file. |
save_format |
Plot save format ("png", "pdf", "svg", "eps") |
reverse_x |
Numeric multiplier for x-axis direction (1 or -1) |
reverse_y |
Numeric multiplier for y-axis direction (1 or -1) |
x_limits |
Numeric vector of length 2 specifying c(min, max) for x-axis. If NULL, limits are set automatically. |
y_limits |
Numeric vector of length 2 specifying c(min, max) for y-axis. If NULL, limits are set automatically. |
arrow_plot_threshold |
Threshold for velocity arrows to be drawn in the same antigenic distance unit (default: 0.10) |
An S3 object of class layout_config
, which is a list containing
the specified configuration parameters for plot layout.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.