Learn R Programming

lme4breeding (version 1.0.80)

simage: Image of sparsity between two variables

Description

image for sparsity.

Usage

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

Value

vector of image

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.

Author

Giovanny Covarrubias

See Also

image, lmebreed

Examples

Run this code

# row x column combinations
data(DT_cpdata)
DT <- DT_cpdata
head(DT)
simage(data=DT, Var1 = "Rowf", Var2 = "Colf")

# dent x flint combinations
data(DT_technow)
DT <- DT_technow
head(DT)
simage(data=DT, Var1 = "dent", Var2 = "flint")

# male x female combinations
data(DT_halfdiallel)
DT <- DT_halfdiallel
head(DT)
simage(data=DT, Var1 = "male", Var2 = "female")

Run the code above in your browser using DataLab