Skip to content

Instantly share code, notes, and snippets.

@mabanach
mabanach / Safety Graphics
Created August 22, 2012 19:53
Baseline QTc
#Contributed by Max Cherny (email: [email protected]]
# clear objects
rm(list = ls())
# close graphics windows
graphics.off()
#Need gridExtra for gridtext function
require(gridExtra)
@mabanach
mabanach / aedotplot.r
Created June 25, 2012 15:36 — forked from jerindienes/aedotplot.r
Adverse Event Dotplot for R
## DEMO FOR SAFETY GRAPHICS
require(lattice)
## The following functions are in the HH package
panel.ae.dotplot <-
function (x, y, groups, ..., col.AB, pch.AB, lower, upper)
{
panel.num <- panel.number()
if (panel.num == 1)
panel.ae.leftplot(x, y, groups = groups,