This function plots the collection of all MUltivariate QuantIlE points in three dimensions (muqie3D
) over all unit-length direction vectors u
, which projects the yamm
-centred multivariate data onto the chosen vector u
to obtain a univariate set. The muqie3D
point is merely the vector u
rescaled to have length equal to the quantile of the univariate set.
muqie3D (xdata, dm=c(1,2,3), probs=0.5,
nsegs=30, nprojs=2000, reltol=0.001,
plot.it=FALSE, full.return=FALSE)
The data as a matrix or dataframe with the number of columns greater than or equal to three, with each row being viewed as one multivariate observation.
A numeric vector with three entries representing the selected columns of the data considered. The default value is \(c(1,2,3)\), which means the first three columns of data are chosen if the dimension of data is more than three.
The quantile of the data after projected to obtain a univariate set.
The number of the three-dimensional unit-length direction vectors u
, which is computed by dividing a unit sphere into nsegs
equal sectors.
The number of projections for the dataset when computing yamm
. The default value is 2000.
The tolerance of the optimisation process in the function yamm
. The default value is 0.001.
Logical. If TRUE
, the function muqie
will produce a three-dimensional quantile plot.
Logical. If TRUE
, the function muqie
will return a list of full results. See “Value”.
If full.results
= TRUE
, it returns a list comprising of
A data matrix with four rows. The first three rows represent the x-, y- and z-coordinates of the projection vector u
respectively. The last row is univariate quantile of the projected data matrix.
A data matrix after projecting the yamm
-centred multivariate data onto a set of projection vectors u
.
The yamm
-centred multivariate data matrix.
The yamm value of the multivariate data. See yamm
for more details.
Chen, F. and Nason, Guy P. (2020) A new method for computing the projection medi an, its influence curve and techniques for the production of projected quantile plots. PLOS One, 10.1371/journal.pone.0229845
# NOT RUN {
data(beetle)
#
# Compute the 0.7-quantile for the first three columns of the beetle data.
muqie3D(beetle, dm=c(1,3,6), probs=0.7)
# }
Run the code above in your browser using DataLab