From 4e64ae900338820cf0478c50a53e01a61bfa4bd5 Mon Sep 17 00:00:00 2001
From: Pierre Santagostini <pierre.santagostini@agrocampus-ouest.fr>
Date: Fri, 5 Jul 2024 14:32:37 +0200
Subject: [PATCH] Links to plot3d.function() modified:
 \link[rgl]{plot3d.function} instead of \link{plot3d.function}

---
 R/plotmcd.R    | 8 ++++----
 man/plotmcd.Rd | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/R/plotmcd.R b/R/plotmcd.R
index 1e9bafc..7550037 100644
--- a/R/plotmcd.R
+++ b/R/plotmcd.R
@@ -16,12 +16,12 @@ plotmcd <- function(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]),
   #' @param mu length 2 numeric vector.
   #' @param Sigma symmetric, positive-definite square matrix of order 2. The scatter matrix.
   #' @param xlim,ylim x-and y- limits.
-  #' @param n A one or two element vector giving the number of steps in the x and y grid, passed to \code{\link{plot3d.function}}.
+  #' @param n A one or two element vector giving the number of steps in the x and y grid, passed to \code{\link[rgl]{plot3d.function}}.
   #' @param xvals,yvals The values at which to evaluate \code{x} and \code{y}. If used, \code{xlim} and/or \code{ylim} are ignored.
   #' @param xlab,ylab,zlab The axis labels.
-  #' @param col The color to use for the plot. See \code{\link{plot3d.function}}.
+  #' @param col The color to use for the plot. See \code{\link[rgl]{plot3d.function}}.
   #' @param tol tolerance (relative to largest variance) for numerical lack of positive-definiteness in Sigma, for the estimation of the density. see \code{\link{dmcd}}.
-  #' @param ... Additional arguments to pass to \code{\link{plot3d.function}}.
+  #' @param ... Additional arguments to pass to \code{\link[rgl]{plot3d.function}}.
   #' @return Returns invisibly the probability density function.
   #'
   #' @author Pierre Santagostini, Nizar Bouhlel
@@ -33,7 +33,7 @@ plotmcd <- function(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]),
   #' 
   #' \code{\link{contourmcd}}: contour plot of a bivariate Cauchy density.
   #' 
-  #' \code{\link{plot3d.function}}: plot a function of two variables.
+  #' \code{\link[rgl]{plot3d.function}}: plot a function of two variables.
   #'
   #' @examples
   #' mu <- c(1, 4)
diff --git a/man/plotmcd.Rd b/man/plotmcd.Rd
index 54ad1e8..9ab5823 100644
--- a/man/plotmcd.Rd
+++ b/man/plotmcd.Rd
@@ -16,17 +16,17 @@ plotmcd(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]),
 
 \item{xlim, ylim}{x-and y- limits.}
 
-\item{n}{A one or two element vector giving the number of steps in the x and y grid, passed to \code{\link{plot3d.function}}.}
+\item{n}{A one or two element vector giving the number of steps in the x and y grid, passed to \code{\link[rgl]{plot3d.function}}.}
 
 \item{xvals, yvals}{The values at which to evaluate \code{x} and \code{y}. If used, \code{xlim} and/or \code{ylim} are ignored.}
 
 \item{xlab, ylab, zlab}{The axis labels.}
 
-\item{col}{The color to use for the plot. See \code{\link{plot3d.function}}.}
+\item{col}{The color to use for the plot. See \code{\link[rgl]{plot3d.function}}.}
 
 \item{tol}{tolerance (relative to largest variance) for numerical lack of positive-definiteness in Sigma, for the estimation of the density. see \code{\link{dmcd}}.}
 
-\item{...}{Additional arguments to pass to \code{\link{plot3d.function}}.}
+\item{...}{Additional arguments to pass to \code{\link[rgl]{plot3d.function}}.}
 }
 \value{
 Returns invisibly the probability density function.
@@ -51,7 +51,7 @@ Entropy, 24, 838, July 2022.
 
 \code{\link{contourmcd}}: contour plot of a bivariate Cauchy density.
 
-\code{\link{plot3d.function}}: plot a function of two variables.
+\code{\link[rgl]{plot3d.function}}: plot a function of two variables.
 }
 \author{
 Pierre Santagostini, Nizar Bouhlel
-- 
GitLab