plot_voltageCurve {Thermistor} | R Documentation |
Plot the V-DeltaT Curve
Description
Plot the temperature-change-voltage curve under a particular
components setting v.s. the target curve. using ggplot
.
Usage
plot_voltageCurve(Tdata, OnlyTarget = TRUE, Pdata = NULL)
Arguments
Tdata |
a vector of temperature-change values |
OnlyTarget |
logical. If |
Pdata |
the values returning by |
Value
the graph
Examples
### only target curve
Tdata <- seq(-40, 85, by = 5)
plot_voltageCurve(Tdata)
### a particular curve and the target curve
data(CompValues)
Tdata <- seq(-40, 85, by=5)
R_id <- c(43, 36, 29, 15, 9, 3)
Res <- CompValues$Res
ThVal <- CompValues$ThVal
ThBeta <- CompValues$ThBeta
Vnew <- voltageCurve(Tdata, R_id, Res, ThVal, ThBeta)
plot_voltageCurve(Tdata, OnlyTarget = FALSE, Pdata = Vnew)
[Package Thermistor version 1.1.0 Index]