plot3d: 3D histogram plot for nethist objects

View source: R/plot3d.R

plot3dR Documentation

3D histogram plot for nethist objects

Description

Drawing plot3D::hist3D() using a nethist, multinethist, or hnethist object with a user-specified order.

Usage

plot3d(x, idx_order = 1:max(x$cluster), type = "nethist", ...)

## S3 method for class 'nethist'
plot3d(x, idx_order = 1:max(x$cluster), type = "nethist", ...)

## S3 method for class 'hnethist'
plot3d(x, idx_order = 1:max(x$cluster), type = "nethist", ...)

## S3 method for class 'multinethist'
plot3d(x, idx_order = 1:max(x$cluster), type = "nethist", ...)

Arguments

x

a nethist, multinethist, or hnethist object.

idx_order

A numeric vector for index label order, which must be a permutation of x$cluster. If NA, it uses 1:max(x$cluster).

type

One of "nethist" (default) or "prob". "MNhist" is a deprecated alias for "nethist".

...

Other arguments passed to plot3D::hist3D().

Value

Called for its side effects (plotting). Returns NULL invisibly.

Examples



set.seed(42)
data(IndianVil)
mnhist_Ind_vil <- multinethist(IndianVil)
plot3d(mnhist_Ind_vil)

data(polblog)
fit <- nethist(polblog)
plot3d(fit)



nethist documentation built on Oct. 25, 2026, 5:07 p.m.