Skip to contents

This function will create bubble plot intended for creation of the percentage of taxa of ecological concern impacted by various pressures

Usage

nba_plot_bubble(DF, GROUP, CAT, SUB_CAT, VALUE, SAVE = NULL)

Arguments

DF

The data frame that contains the information

GROUP

The grouping variables (taxa group, etc)

CAT

The overall pressure category

SUB_CAT

The sub pressure category

VALUE

The percentage of taxa of ecological concern impacted by the pressure

SAVE

The name of the output file that will be saved to the output folder. If you do not have an outputs folder you will be prompted to make one.

Value

Returns a bubble plot

Details

Please use the example dataset NBA_bubble_plot_example_data to see how the data should be formatted.

Examples

bubble_plot <- nba_plot_bubble(DF = NBA_example_bubble_data,
                        GROUP = taxon_group,
                       CAT = pressure,
                       SUB_CAT = sub_pressure,
                       VALUE = perc_concern_under_press,
                        SAVE = NULL)

bubble_plot
#> Warning: Removed 41 rows containing missing values or values outside the scale range
#> (`geom_point()`).
#> Warning: Removed 41 rows containing missing values or values outside the scale range
#> (`geom_text()`).