simage: Image of sparsity between two variables

View source: R/AllClass.R

simageR Documentation

Image of sparsity between two variables

Description

image for sparsity.

Usage

simage(data, Var1=NULL, Var2=NULL, ...)

Arguments

data

model data of class "data.frame"

Var1

variable to set in the x axis

Var2

variable to set in the y axis

...

Further arguments to be passed to the image function.

Value

vector of image

Author(s)

Giovanny Covarrubias

See Also

image

Examples


# row x column combinations existing

DT <- data.frame(Row=sort(rep(1:10,5)), Col=rep(1:5,10))
DT$Rowf <- as.factor(DT$Row)
DT$Colf <- as.factor(DT$Col)
DT <- DT[-1,] # remove one intentionally
simage(data=DT, Var1 = "Rowf", Var2 = "Colf")

# you can also inpect which cross combinations exist


enhancer documentation built on April 12, 2026, 9:07 a.m.