Skip to contents

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

Examples

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)