This function plots the USSL diagram for the given data frame.
plot_USSL(
df,
ec_column,
sar_column,
label_column = NULL,
grp_column = NULL,
convert_units = FALSE
)A ggplot object representing the USSL diagram. #' @examples df <- data.frame(EC = c(1000, 2000, 3000), Na_percent = c(20, 30, 40), Group = c("red", "green", "blue")) plot_USSL(df, ec_column = "EC", sar_column = "SAR", label_column = NULL, grp_column = "Group", convert_units = FALSE)
Data frame containing the necessary columns.
Column name for electrical conductivity (EC).
Column name for SAR (optional).
Column name for labels (optional).
Column name for grouping (optional).
Logical, whether to convert units.