- f
Object of class "function" that represents a spherical density function or any general real-valued function defined on the unit sphere. Matrix parametrisation of f must be established. Each row of the matrix corresponds to the cartesian coordinates of a point on the unit sphere. Additionally, if f is not a density function, the argument tau cannot be specified and only the value of level must be provided by the user.
- tau
Numeric probability. According to Saavedra-Nieves and Crujeiras (2021), 1-tau represents the probability coverage required for HDR. If tau=NULL, a value for the threshold level must be provided.
- level
Numeric threshold of the HDR or of the general level set provided by the user. If level is larger than the maximum value of the function f, the HDR or the level set are equal to the emptyset. If level is smaller than the minimum of f, its support is obtained. If level=NULL, f must be a density function and a value for the probability coverage 1-tau of the HDR must be provided.
- nborder
Maximum number of HDRs boundary points to be represented. Default nborder= 1000.
- tol
Tolerance parameter to determinate the boundary of HDRs. Default tol=0.1.
- mesh
A numeric value 10, 20 or 40 indicating the 3D cartesian mesh used for numerical integration on the unit shere. Default mesh=40 considering a total of 32000 triangular cells on the sphere. If mesh=20 or mesh=10, 8000 triangular cells or 2000 are considered, respectively.
- deg
Integer string indicating the degree (from 0 to 6) of the quadrature rules for triangles on the sphere for numerical integration. Default deg=6.
- plot.hdr
Logical string. If TRUE, the boundary of the level set or the HDR are represented graphically. Default plot.density=TRUE.
- col
Color number for plotting the boundary of the HDR. Default "darkgray".