plot_Wilcox {iwaqr} | R Documentation |
Plot Wilcox diagram for all rows
Description
This function plots the USSL diagram for the given data frame.
Usage
plot_Wilcox(
df,
ec_column,
Napercent_column,
label_column = NULL,
grp_column = NULL,
convert_units = FALSE
)
Arguments
df |
containig relevant columns with values |
ec_column |
Column name for electrical conductivity (EC). |
Napercent_column |
Column name for Na percent (optional). |
label_column |
Column name for labels (optional). |
grp_column |
Column name for grouping (optional). |
convert_units |
logical wether to convert values from mg/l to meq/l |
Value
A ggplot object representing the Wilcox diagram.
#' @examples f <- data.frame(EC = c(1000, 2000, 3000), Na_percent = c(20, 30, 40), Color = c("red", "green", "blue")) plot_Wilcox(f, ec_column = "EC", Napercent_column = "Na_percent", label_column = NULL, grp_column = "Color", convert_units = FALSE)
a numeric vector containing Na percent values
[Package iwaqr version 1.8.4 Index]