Title: | Evaluation of MIA-CSO data with R |
---|---|
Description: | Definition of functions that will be used to produce diagrams showing the number of critical oxygen events in the river. |
Authors: | Hauke Sonnenberg [aut, cre] , Michael Rustler [ctb] , MIA-CSO [fnd], Kompetenzzentrum Wasser Berlin gGmbH (KWB) [cph] |
Maintainer: | Hauke Sonnenberg <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.4 |
Built: | 2024-10-29 02:46:07 UTC |
Source: | https://github.com/KWB-R/kwb.mia.evalCritO2 |
Groups input data.frame by its columns "Jahr" and "Spree_km".
hsGroupByYearAndKm( frmData, strValField, boolDescKm = FALSE, boolDescYr = FALSE, vecMp = NULL )
hsGroupByYearAndKm( frmData, strValField, boolDescKm = FALSE, boolDescYr = FALSE, vecMp = NULL )
frmData |
data.frame with columns "Jahr" and "Spree_km" |
strValField |
Name of value field in input data.frame of which for each Jahr/Spree_km group the sum will be calculated. |
boolDescKm |
if TRUE, columns in result matrix will be ordered according to decreasing "Spree_km" values |
boolDescYr |
if TRUE, columns in result matrix will be ordered according to decreasing "Jahr" values |
vecMp |
Vector containing pairs of km value and monitoring point name |
Returns the matrix calculated by hsGroupBy2Fields()
Plot result of evaluation in forms of barplots, with default settings
hsPlotAll( strDb, strTable, myScaled = TRUE, myReverse = TRUE, myBeside = TRUE, myCexNames = 1, mySub = "", dbg = FALSE, myWidth = 1, myValLabs = FALSE, yearsInSub = FALSE, lng = "de", ... )
hsPlotAll( strDb, strTable, myScaled = TRUE, myReverse = TRUE, myBeside = TRUE, myCexNames = 1, mySub = "", dbg = FALSE, myWidth = 1, myValLabs = FALSE, yearsInSub = FALSE, lng = "de", ... )
strDb |
path to Microsoft Access Database file |
strTable |
name of database table containing the data to plot |
myScaled |
logical. Default: |
myReverse |
logical. Default: |
myBeside |
if |
myCexNames |
character expansion factor for names |
mySub |
subtitle. Default: "" |
dbg |
if |
myWidth |
bar width. Default: 1 |
myValLabs |
logical. Default: |
yearsInSub |
logical. Default: |
lng |
language code, one of "en" (English, the default) or "de" (German) |
... |
further arguments passed to |
Print result of evaluation in forms of barplots into pdf file
hsPlotAllToPdf(strPdf, ...)
hsPlotAllToPdf(strPdf, ...)
strPdf |
path to PDF file to which to plot |
... |
further arguments passed to |
Plot O2 Evaluation
hsPlotO2Eval(dat, main = "Title?", lng = "en")
hsPlotO2Eval(dat, main = "Title?", lng = "en")
dat |
data frame with columns Jahr, LamEvents, 2mgEvents, LamKalTage, 2mgKalTage |
main |
|
lng |
language code, one of "en" (English, the default) or "de" (German) |
Plot Result of O2 Evaluation to PDF
hsPlotO2EvalPdf(dat, main = "Title?", pdffile = NULL)
hsPlotO2EvalPdf(dat, main = "Title?", pdffile = NULL)
dat |
data frame with columns Jahr, LamEvents, 2mgEvents, LamKalTage, 2mgKalTage |
main |
|
pdffile |
path to PDF file to which to plot |
translates text.en into target language lng.
hsTranslate(text.en, lng)
hsTranslate(text.en, lng)
text.en |
english text (character vector of length 1 expected) |
lng |
target language: en = English, de = German |