plot_ranges_pH.Rd
Takes in a ranges_df dataframe and makes a plot (for pH).
plot_ranges_pH(ranges, ylim = c(1, 14), by = 1, ylab = "pH")
ranges | A dataframe of ranges with at least these columns: 'Sensor_Name': the name of the sensor 'Minimum': the minimum pH measurable at the given inaccuracy 'Maximum': the maximum pH measurable at the given inaccuracy 'Inaccuracy': the inaccuracy associated with this row (relative) 'error_thresh': the error threshold associated with this row |
---|---|
ylim | The limits of the ranges plot |
by | the 'by' argument of the limits axis tick marks |
ylab | The label of the ranges plot |
A ggplot object
error_df <- create_error_df_pH_multiple( c(0.01, 0.02), 2, 10, data.frame( "Rmin" = c(1, 2), "Rmax" = c(5, 6), "delta" = c(0.2, 1.2), "name" = c("normal", "plusOne"), "pKa" = c(7, 8) ) ) ranges_df <- create_ranges_multiple(error_df, parameter = "pH", thresholds = c(0.01, 0.05, 0.10, 0.15, 0.20) ) plot_ranges_pH(ranges_df)