Plotting functions#
- depth_mesh(data, notion='halfspace', freq=[100, 100], xlim=None, ylim=None, mah_estimate='moment', mah_parMCD=0.75, beta=2, distance='Lp', Lp_p=2, exact=True, method='recursive', k=0.05, solver='neldermead', NRandom=1000, option=1, n_refinements=10, sphcap_shrink=0.5, alpha_Dirichlet=1.25, cooling_factor=0.95, cap_size=1, start='mean', space='sphere', line_solver='goldensection', bound_gc=True)[source]#
- Description
Computes data depth values for a bi-variate mesh of points w.r.t. a multivariate data set.
- Arguments
- data
Matrix of data where each row contains a d-variate point, w.r.t. which the depth is to be calculated.
- notion
'aprojection'
for asymmetric projection depth;'betaSkeleton'
for beta-skeleton depth (including lens and spherical depth);'cexpchull'
for continuous expected convex hull depth;'cexpchullstar'
for continuous modified expected convex hull depth;'geometrical'
for geometrical depth;'halfspace'
for the halfspace depth;'L2'
for L2-depth;'mahalanobis'
for Mahalanobis depth;'projection'
for projection depth;'qhpeeling'
for convex hull peeling (or onion) depth;'simplicial'
for simplicial depth;'simplicialVolume'
for simplicial volume (or Oja) depth;'spatial'
for spatial depth;'zonoid'
for zonoid depth.
- freq
Frequency in abscisse and ordinate.
- xlim
Range of values for abscisse.
- ylim
Range of values for ordinate.
- mah_estimate, …
Depth-dependent parameters (see the corresponding depth functions), which shall be forwarded to the depth-computing routines.
- depth_plot2d(data, notion='halfspace', freq=[100, 100], xlim=None, ylim=None, cmap='YlOrRd', ret_depth_mesh=False, xs=None, ys=None, val_mesh=None, mah_estimate='moment', mah_parMCD=0.75, beta=2, distance='Lp', Lp_p=2, exact=True, method='recursive', k=0.05, solver='neldermead', NRandom=1000, option=1, n_refinements=10, sphcap_shrink=0.5, alpha_Dirichlet=1.25, cooling_factor=0.95, cap_size=1, start='mean', space='sphere', line_solver='goldensection', bound_gc=True)[source]#
- Description
Plots the surface of data depth values for a bi-variate mesh of points w.r.t. a multivariate data set.
- Arguments
- data
Matrix of data where each row contains a d-variate point, w.r.t. which the depth is to be calculated.
- notion
'aprojection'
for asymmetric projection depth;'betaSkeleton'
for beta-skeleton depth (including lens and spherical depth);'cexpchull'
for continuous expected convex hull depth;'cexpchullstar'
for continuous modified expected convex hull depth;'geometrical'
for geometrical depth;'halfspace'
for the halfspace depth;'L2'
for L2-depth;'mahalanobis'
for Mahalanobis depth;'projection'
for projection depth;'qhpeeling'
for convex hull peeling (or onion) depth;'simplicial'
for simplicial depth;'simplicialVolume'
for simplicial volume (or Oja) depth;'spatial'
for spatial depth;'zonoid'
for zonoid depth.
- freq
Frequency in abscisse and ordinate.
- xlim
Range of values for abscisse.
- ylim
Range of values for ordinate.
- cmap
Color map.
- ret_depth_mesh
Should the depth mesh be returned?
- mah_estimate, …
Depth-dependent parameters (see the corresponding depth functions), which shall be forwarded to the depth-computing routines.