# Plot a dataset of means
dataExample <- getDataset(
n1 = c(22, 11, 22, 11),
n2 = c(22, 13, 22, 13),
means1 = c(1, 1.1, 1, 1),
means2 = c(1.4, 1.5, 3, 2.5),
stDevs1 = c(1, 2, 2, 1.3),
stDevs2 = c(1, 2, 2, 1.3)
)
# \donttest{
if (require(ggplot2)) plot(dataExample, main = "Comparison of Means")
# }
# Plot a dataset of rates
dataExample <- getDataset(
n1 = c(8, 10, 9, 11),
n2 = c(11, 13, 12, 13),
events1 = c(3, 5, 5, 6),
events2 = c(8, 10, 12, 12)
)
# \donttest{
if (require(ggplot2)) plot(dataExample, main = "Comparison of Rates")
# }
Run the code above in your browser using DataLab