Skip to contents

Generic function to plot a SimulationResult object.

Usage

# S3 method for SimulationResult
plot(
  x,
  ...,
  main = "Continuous Fake Data",
  xlab = "Group",
  ylab = "Simulated Values"
)

Arguments

x

a SimulationResult object to plot.

...

not used

main

an overall title for the plot.

xlab

a title for the x axis.

ylab

a title for the y axis.

Value

A ggplot2 object.

Details

Uses ggplot2 to create the plot.

Examples

x <- getSimulatedTwoArmMeans(n1 = 50, n2 = 50, mean1 = 5, mean2 = 7,
                             sd1 = 3, sd2 = 4, seed = 123)
if (require(ggplot2)) plot(x)
#> Loading required package: ggplot2