dimnames<-.hstats_matrix | R Documentation |
This implies colnames(x) <- ...
.
## S3 replacement method for class 'hstats_matrix'
dimnames(x) <- value
x |
An object of class "hstats_matrix". |
value |
A list with rownames and column names compliant with |
Like x
, but with replaced dimnames.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.