You might follow the advice in your signature, i.e., "Go confidently in the
direction of your dreams.", and try ?pdf. :)
There is also ?ggsave.
BiasF <- rbind(
data.frame(s = qF, F = sumBias[,1], fun = 'Bias of F unweighted'),
data.frame(s = qF, F = sumBias[,3], fun = 'Bias of F weighted'),
data.frame(s = qF, F = sumBias[,5], fun = 'Bias of F unweighted KM'),
data.frame(s = qF, F = sumBias[,7], fun = 'Bias of F weighted KM')
)
ggplot(BiasF, aes(s, F, colour = fun, shape = fun)) +
geom_point() + ylab('Bias') + xlab('Quantiles') +
opts(labels = c(colour = 'Bias', shape = 'Bias'),
title= 'Bias of Exponential for F')
key <- simpleKey(c(paste('n = ', n), paste('m = ', m), paste('N = ', N),
paste('Frate = ', Frate), paste('Grate = ', Grate), paste('Rate1 = ', RATE1),
paste('Rate2 = ', RATE2), paste('CenRate1 % = ', Rate1Per),
paste('CenRate2 % = ', Rate2Per)), points = FALSE)
seekViewport("legend_box")
pushViewport(viewport(just=c(.525, .725)))
draw.key(key, draw=TRUE)