View source: R/plotVoltageCurve.R
plot_voltageCurve | R Documentation |
Plot the temperature-change-voltage curve under a particular
components setting v.s. the target curve. using ggplot
.
plot_voltageCurve(Tdata, OnlyTarget = TRUE, Pdata = NULL)
Tdata |
a vector of temperature-change values |
OnlyTarget |
logical. If |
Pdata |
the values returning by |
the graph
### 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.