plot_ranges_pH: Takes in a ranges_df dataframe and makes a plot (for pH).

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Takes in a ranges_df dataframe and makes a plot (for pH).

Usage

1
plot_ranges_pH(ranges, ylim = c(1, 14), by = 1, ylab = "pH")

Arguments

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

Value

A ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

julianstanley/SensorOverlord documentation built on Oct. 19, 2020, 2:29 p.m.