plot_X_prima_AB {RVCompare} | R Documentation |
retunrs a ggplot2 with the estimations of X'_A and X'_B or the difference in cumulative distribution function.
plot_X_prima_AB( estimated_X_prima_AB_bounds, labels = c("X'_A", "X'_B"), plotDifference = TRUE )
estimated_X_prima_AB_bounds |
the bounds estimated with |
labels |
(optional, c("X'_A","X'_B")) a string vector of length 2 with the labels of X_A and X_B, in that order. |
plotDifference |
(optional, default=TRUE) plots the difference (X'_A - X'_B) instead of each of the random variables on their own. |
the ggplot figure object.
### Example 1 ### X_A_observed <- rnorm(800,mean = 1, sd = 1) X_B_observed <- rnorm(800,mean = 1.3, sd = 0.5) res <- get_X_prima_AB_bounds_DKW(X_A_observed, X_B_observed) densitiesPlot = plot_X_prima_AB(res, plotDifference=TRUE) print(densitiesPlot)