You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/util_tplotfunctions.R
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -413,6 +413,7 @@ plot.probability <- function(
413
413
#'
414
414
#' @param p object of class "probability", obtained with \code{\link{Pr}} or \code{\link{tailPr}}.
415
415
#' @param breaks `NULL` or as in function \code{\link[graphics]{hist}}. If `NULL` (default), an optimal number of breaks for each probability distribution is computed.
416
+
#' @param alpha.f Numeric, default 0.125: opacity of the histogram filling. `0` means no filling.
416
417
#' @param legend string or logical: plot a legend of the different curves at position `legend`? If `TRUE`, position is 'top'.
417
418
#' @param ... other parameters to be passed to \code{\link{flexiplot}}.
418
419
#'
@@ -424,6 +425,7 @@ hist.probability <- function(
424
425
lty= c(1, 2, 4, 3, 6, 5),
425
426
lwd=2,
426
427
col= palette(),
428
+
alpha.f=0.125,
427
429
## c( ## Tol's colour-blind-safe scheme, or palette()
0 commit comments