View source: R/plotGridSearch_gg.R
| plotGridSearch_gg | R Documentation |
Draws the fit index recorded by exametrika::GridSearch() against the
number of classes or ranks. For LCA/LRA this is one line. For Biclustering
the default is one line per number of fields, and style = "tile"
draws the class-by-field grid as a heat map instead. Settings that
converged are filled points, settings that left a class, rank or field
empty are open triangles, settings that failed to converge are left
blank, and the optimum is marked with a large red point (and, for one
line, a dotted vertical line).
plotGridSearch_gg(
data,
style = c("line", "tile"),
title = TRUE,
colors = NULL,
linetype = "solid",
show_legend = TRUE,
legend_position = "right"
)
data |
A |
style |
Character. |
title |
Logical or character. If |
colors |
Character vector. For |
linetype |
Character or numeric. Line type of the index line(s).
Default is |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The plot reads index_vec (LCA/LRA) or index_matrix
(Biclustering) together with the empty_vec/empty_matrix
flags that GridSearch() records since exametrika 2.3.0. With an
older exametrika no setting is marked as empty.
A single ggplot object.
library(exametrika)
gs <- GridSearch(J15S500, max_ncls = 5, fun = "LCA", index = "BIC")
plotGridSearch_gg(gs)
gs_b <- GridSearch(J15S500,
max_ncls = 4, max_nfld = 4,
fun = "Biclustering", index = "BIC"
)
plotGridSearch_gg(gs_b)
plotGridSearch_gg(gs_b, style = "tile")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.