Learn R Programming

atlantistools (version 0.4.3)

plot_boxes: Plot layout of boxes!

Description

Plot layout of boxes!

Usage

plot_boxes(data, color_boxes = TRUE)

Arguments

data

Dataframe to be plotted.

color_boxes

logical indicating if polygons should be color coded or not. Default is TRUE.

Value

ggplot2 object

See Also

Other plot functions: plot_bar, plot_diet_bec_dev, plot_diet, plot_line, plot_rec, plot_species

Examples

Run this code
# NOT RUN {
d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
bgm_data <- convert_bgm(file.path(d, "VMPA_setas.bgm"))

# Use color coding for polygons.
plot_boxes(bgm_data)

# Only use text to indicate polygons.
plot_boxes(bgm_data, color_boxes = FALSE)
# }

Run the code above in your browser using DataLab