Skip to content
Snippets Groups Projects
Commit 4e64ae90 authored by SANTAGOSTINI Pierre's avatar SANTAGOSTINI Pierre
Browse files

Links to plot3d.function() modified: \link[rgl]{plot3d.function} instead of \link{plot3d.function}

parent 65e727fe
No related branches found
No related tags found
No related merge requests found
...@@ -16,12 +16,12 @@ plotmcd <- function(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]), ...@@ -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 mu length 2 numeric vector.
#' @param Sigma symmetric, positive-definite square matrix of order 2. The scatter matrix. #' @param Sigma symmetric, positive-definite square matrix of order 2. The scatter matrix.
#' @param xlim,ylim x-and y- limits. #' @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 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 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 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. #' @return Returns invisibly the probability density function.
#' #'
#' @author Pierre Santagostini, Nizar Bouhlel #' @author Pierre Santagostini, Nizar Bouhlel
...@@ -33,7 +33,7 @@ plotmcd <- function(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]), ...@@ -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{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 #' @examples
#' mu <- c(1, 4) #' mu <- c(1, 4)
......
...@@ -16,17 +16,17 @@ plotmcd(mu, Sigma, xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]), ...@@ -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{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{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{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{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{ \value{
Returns invisibly the probability density function. Returns invisibly the probability density function.
...@@ -51,7 +51,7 @@ Entropy, 24, 838, July 2022. ...@@ -51,7 +51,7 @@ Entropy, 24, 838, July 2022.
\code{\link{contourmcd}}: contour plot of a bivariate Cauchy density. \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{ \author{
Pierre Santagostini, Nizar Bouhlel Pierre Santagostini, Nizar Bouhlel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment