plot_USSL {iwaqr}R Documentation

Plot USSL diagram for all rows

Description

This function plots the USSL diagram for the given data frame.

Usage

plot_USSL(
  df,
  ec_column,
  sar_column,
  label_column = NULL,
  grp_column = NULL,
  convert_units = FALSE
)

Arguments

df

Data frame containing the necessary columns.

ec_column

Column name for electrical conductivity (EC).

sar_column

Column name for SAR (optional).

label_column

Column name for labels (optional).

grp_column

Column name for grouping (optional).

convert_units

Logical, whether to convert units.

Value

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)


[Package iwaqr version 1.8.4 Index]