Usage
Visualize_Metric(
dfResults = dfResults,
dfBounds = NULL,
dfGroups = NULL,
dfMetrics = NULL,
strMetricID = NULL,
strSnapshotDate = NULL,
bDebug = FALSE
)
Arguments
- dfResults
data.frame
A stacked summary of analysis pipeline output. Created by passing a list of results returned bySummarize()
toBindResults()
. Expected columns:GroupID
,GroupLevel
,Numerator
,Denominator
,Metric
,Score
,Flag
,MetricID
,StudyID
,SnapshotDate
.- dfBounds
data.frame
Set of predicted percentages/rates and upper- and lower-bounds across the full range of sample sizes/total exposure values for reporting. Created by passingdfResults
anddfMetrics
toMakeBounds()
. Expected columns:Threshold
,Denominator
,Numerator
,Metric
,MetricID
,StudyID
,SnapshotDate
.- dfGroups
data.frame
Group-level metadata dictionary. Created by passing CTMS site and study data toMakeLongMeta()
. Expected columns:GroupID
,GroupLevel
,Param
,Value
.- dfMetrics
data.frame
Metric-specific metadata for use in charts and reporting. Created by passing anlWorkflow
object toMakeMetric()
. Expected columns:File
,MetricID
,Group
,Abbreviation
,Metric
,Numerator
,Denominator
,Model
,Score
, andThreshold
. For more details see the Data Model vignette:vignette("DataModel", package = "gsm")
.- strMetricID
character
MetricID to subset the data.- strSnapshotDate
character
Snapshot date to subset the data.- bDebug
logical
Display console in html viewer for debugging. Default isFALSE
.
Value
A list containing the following charts:
scatterJS: A scatter plot using JavaScript.
scatter: A scatter plot using ggplot2.
barMetricJS: A bar chart using JavaScript with metric on the y-axis.
barScoreJS: A bar chart using JavaScript with score on the y-axis.
barMetric: A bar chart using ggplot2 with metric on the y-axis.
barScore: A bar chart using ggplot2 with score on the y-axis.
timeSeriesContinuousScoreJS: A time series chart using JavaScript with score on the y-axis.
timeSeriesContinuousMetricJS: A time series chart using JavaScript with metric on the y-axis.
timeSeriesContinuousNumeratorJS: A time series chart using JavaScript with numerator on the y-axis.
metricTable: A table containing all