Learn R Programming

tidywater (version 0.7.0)

plot_ions: Create summary plot of ions from water class

Description

This function takes a water data frame defined by define_water and outputs an ion balance plot.

Usage

plot_ions(water)

Value

A ggplot object displaying the water's ion balance.

Arguments

water

Source water vector created by link function here

Examples

Run this code
water_defined <- define_water(7, 20, 50, 100, 80, 10, 10, 10, 10, tot_po4 = 1)
plot_ions(water_defined)

Run the code above in your browser using DataLab