muqie3D | R Documentation |
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)
xdata |
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. |
dm |
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. |
probs |
The quantile of the data after projected to obtain a univariate set. |
nsegs |
The number of the three-dimensional unit-length direction vectors |
nprojs |
The number of projections for the dataset when computing |
reltol |
The tolerance of the optimisation process in the function |
plot.it |
Logical. If |
full.return |
Logical. If |
If full.results
= TRUE
, it returns a list comprising of
ans |
A data matrix with four rows. The first three rows represent the x-, y- and z-coordinates of the projection vector |
uvd |
A data matrix after projecting the |
cdata |
The |
yamm |
The yamm value of the multivariate data. See |
If full.results
= FALSE
(default), it will only return ans
.
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, doi: 10.1371/journal.pone.0229845
yamm
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.