Skip to contents

Helper function to make a custom legend for TESS maps

Usage

krig_legend(gg_df, plot_method, ggplot_fill, minQ)

Arguments

gg_df

dataframe in tidy format of Q values from tess_ggplot

plot_method

method for making rainbow map of kriged layers (options: "maxQ" to only plot the max Q value for each cell (default), "allQ" to plot all Q values greater than minQ, "maxQ_poly" or "allQ_poly" to create the plots as previously described, but as polygons for each K instead of continuous Q values)

ggplot_fill

any ggplot2 scale fill discrete function (default: scale_fill_viridis_d, option = "turbo")

minQ

threshold for minimum Q-value for rainbow plotting if plot_method = "allQ" or plot_method = "allQ_poly" is used (defaults to 0.10)

Value

legend for kriged map from TESS