plot_Riverside {iwaqr} | R Documentation |
Plot Riverside diagram for all rows
Description
This function plots the USSL diagram for the given data frame.
Usage
plot_Riverside(
df,
ec_column,
sar_column,
label_column = NULL,
grp_column = NULL,
convert_units = FALSE
)
Arguments
df |
containing values in relevant 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 wether to convert from mg/l to meq/l |
Value
A ggplot object representing the USSL diagram.
a numeric vector containing SAR values
Examples
df <- data.frame(EC = c(1000, 2000, 3000),
SAR = c(20, 30, 40),
Color = c("red", "green", "blue"))
plot_Riverside(df, ec_column = "EC" , sar_column = "SAR",grp_column = "Color",
convert_units= FALSE)
[Package iwaqr version 1.8.4 Index]