I am current working on a Shiny application where clValid is used to validate the clustering algorithms. After I get the result using intern <- clValid(...)
, I can print the three figures in the console by hitting the <Enter> button. However, for a shiny application, how can I plot all the three figures at the same time?
==== more detail
Here's typical code to get validation result
data(mouse)
## internal validation
express <- mouse[1:25,c("M1","M2","M3","NC1","NC2","NC3")]
rownames(express) <- mouse$ID[1:25]
intern <- clValid(express, 2:6, clMethods=c("hierarchical","kmeans","pam"),
validation="internal")
## view results
plot(intern)
However, figures will not plot automatically, and you have to hit <Enter> to view all the figures as follows:
> plot(intern)
Hit <Return> to see next plot:
Hit <Return> to see next plot:
Hit <Return> to see next plot:
My question is, if Shiny is used, a plotOutput lies in the ui.R
as:
mainPanel(
plotOutput("clust_valid_plot")
)
how can I print all the three plots to the clust_valid_plot
?