| convert_occupancy | R Documentation |
Convert an occupancy matrix to matrix with different symbols.
convert_occupancy(x, to = c("", "<", ">", "v", "^"))
x |
an occupancy |
to |
a |
matrix as the occupancy matrix but with entries replaced
by those in to.
Marius Hofert
Other zenplot technical tools:
is.standard(),
n2dcols_aux(),
num_cols(),
turn_checker()
## Generate some data
n <- 1000 # sample size
d <- 20 # dimension
set.seed(271) # set seed (for reproducibility)
x <- matrix(rnorm(n * d), ncol = d) # i.i.d. N(0,1) data
## Extract the occupancy matrix from a zenplot
res <- zenplot(x)
(occ <- res[["path"]][["occupancy"]])
## Convert the occupancy matrix
convert_occupancy(occ)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.