diff --git a/DESCRIPTION b/DESCRIPTION index 79e2ac5..97ef36a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,6 +21,7 @@ Depends: R (>= 2.10) Imports: graphics, + lattice, stats, withr Suggests: diff --git a/NAMESPACE b/NAMESPACE index a523532..bbae30f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -37,6 +37,7 @@ importFrom(graphics,polygon) importFrom(graphics,stripchart) importFrom(graphics,text) importFrom(graphics,title) +importFrom(lattice,histogram) importFrom(stats,dbinom) importFrom(stats,dchisq) importFrom(stats,dexp) diff --git a/R/ISCAM-package.R b/R/ISCAM-package.R index 9519917..8965e00 100644 --- a/R/ISCAM-package.R +++ b/R/ISCAM-package.R @@ -3,6 +3,7 @@ ## usethis namespace: start #' @importFrom graphics abline axis bxp grid hist legend lines mtext par points polygon stripchart text title +#' @importFrom lattice histogram #' @importFrom stats dbinom dchisq dexp dhyper dlnorm dnorm dt median pbinom pchisq phyper pnorm pt qbeta qbinom qnorm qt quantile sd #' @importFrom withr local_par local_options ## usethis namespace: end diff --git a/R/plots.R b/R/plots.R index 3dc4547..4bb680d 100644 --- a/R/plots.R +++ b/R/plots.R @@ -133,6 +133,4 @@ iscamdotplot <- function( } # TODO: look at lattice::histogram -#' @noRd -#' @keywords internal -iscamhistogram <- function() {} +iscamhistogram <- function(...) lattice::histogram(...)