formatscales: Format plot scales

Description Usage Arguments Value

Description

Utility function to format plot scales for density distribution plots of environmental variables.

Usage

1
formatscales(in_df, varstoplot)

Arguments

in_df

data.frame with all records for environmental variables. Used to determine the appropriate range of values for each variable. In this case, a data.table of the river network hydro-environmental attributes.

varstopplot

vector of variable names that will be plots and for which to return a list of scales

Value

list of x and y scale objects + cartesian coordinates for ggplot


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.