dNeedle {qreport}R Documentation

Draw Needles

Description

Create an html base64 string from a png graphic to draw needles for current sample sizes. Uses colors set by call to setqreportOptions.

Usage

dNeedle(sf, study = " ")

Arguments

sf

output of sampleFrac

study

character string specifying study ID

Value

a base64 representation of a png graphic, suitable for inclusion in html

Examples

setqreportOption(tx.var='treatment', denom=c(enrolled=1000, randomized=800, a=398, b=402))
dNeedle(sampleFrac(getqreportOption('denom')))

[Package qreport version 1.0-0 Index]