Learn R Programming

qreport (version 1.0-1)

dNeedle: 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 = " ")

Value

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

Arguments

sf

output of sampleFrac

study

character string specifying study ID

Examples

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

Run the code above in your browser using DataLab