This implies colnames(x) <- ....

# S3 method for class 'hstats_matrix'
dimnames(x) <- value

Arguments

x

An object of class "hstats_matrix".

value

A list with rownames and column names compliant with $M (and $SE).

Value

Like x, but with replaced dimnames.

Examples

fit <- lm(as.matrix(iris[1:2]) ~ Petal.Length + Petal.Width * Species, data = iris)
s <- hstats(fit, X = iris[3:5], verbose = FALSE)
x <- h2_overall(s)
colnames(x) <- c("Sepal Length", "Sepal Width")
plot(x)


rownames(x)[2:3] <- c("Petal Width", "Petal Length")
plot(x)