Disabling Interactive Features in R

Hi All,

I am interested in using some visuals from a package called `aweSOM.' aweSOM

Very nice visuals. However, it just so happens that there are certain instances when I'd like to switch off the interactiveness of these visuals.

I've attached below some sample code. Would be appreciated if anyone knew how to disable the visual given the link above.

full.data <- iris
train.data <- full.data[, c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")]
train.data <- scale(train.data)
init <- somInit(train.data, 4, 4)
iris.som <- kohonen::som(train.data, grid = kohonen::somgrid(4, 4, "hexagonal"), 
                         rlen = 100, alpha = c(0.05, 0.01), radius = c(2.65,-2.65), 
                         dist.fcts = "sumofsquares", init = init)

superclust_pam <- cluster::pam(iris.som$codes[[1]], 3)
superclasses_pam <- superclust_pam$clustering


aweSOMplot(som = iris.som, type = "Cloud", data = full.data, 
           variables = c("Species", "Sepal.Length", "Sepal.Width",  
                         "Petal.Length", "Petal.Width"), 
           superclass = superclasses_pam)

I think I would try to use webshot2 to take an image of the dynamic plot, and then show that image

CRAN - Package webshot2 (r-project.org)

Thanks @nirgrahamuk . I'll give it a go.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.