Description Usage Arguments Value Author(s) Examples
Reads record from database and plots raw data, fit, and extracted coefficients
1 2 3 |
con |
Open connection to SQLite database; use |
breathTestRecordID |
BreathTestRecordID in database; used in tables BreathTestRecord (primary), BreathTestParameter, BreathTestTimeSeries (foreign). |
showParameters |
The parameters to display in the graph as a data frame with
column |
ymax |
Vertical scaling; default of NULL is for autoscaling |
xmax |
Time axis scaling; default of NULL is for autoscaling |
showName |
Show full patient name and DOB, initials otherwise |
showPopulationFit |
If available, show population fit as a red curve. If the single fit fails, and there is a valid population fit, this is always shown. |
A ggplot2 graphics object
Dieter Menne, dieter.menne@menne-biomed.de
1 2 3 4 5 6 7 8 9 10 11 | if (exists("con")) suppressWarnings(dbDisconnect(con))
sqlitePath = tempfile(pattern = "Gastrobase", tmpdir = tempdir(), fileext = ".sqlite")
unlink(sqlitePath)
CreateEmptyBreathTestDatabase(sqlitePath)
con = OpenSqliteConnection(sqlitePath)
filename = system.file("extdata", "350_20043_0_GER.txt", package = "D13CBreath")
breathTestRecordID = AddBreathTestRecord(filename,con)
showParameters = data.frame(Parameter="t50",Method = c("BreathID","BluckCoward"))
Plot13CRecord(con,breathTestRecordID)
Plot13CRecord(con,breathTestRecordID, showParameters)
dbDisconnect(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.