knitr::opts_chunk$set(echo = TRUE) library(GridFCM) library(OpenRepGrid) library(knitr) library(rgl) library(shiny) library(plotly) knitr::knit_hooks$set(webgl = hook_webgl)
GRIDFCM REPORT
bertin(render.grid, colors = c("white","#005440"))
bertin(render.imp, colors = c("#F52722","#e5e5e5","#a5d610"))
scores <- getRatingLayer(render.imp) lpoles <- getConstructNames(render.imp)[,1] rpoles <- getConstructNames(render.imp)[,2] imps <- paste("(",c(1:dim(render.imp)[2]),")",getElementNames(render.imp)) imp.matrix <- matrix(nrow = dim(render.imp)[1], ncol = dim(render.imp)[2]) colnames(imp.matrix) <- imps for (n in 1:dim(imp.matrix)[2]) { for (i in 1:dim(imp.matrix)[1]) { if(scores[i,n] > 0){ imp.matrix[i,n] <- rpoles[i] } if(scores[i,n] < 0){ imp.matrix[i,n] <- lpoles[i] } if(scores[i,n] == 0){ imp.matrix[i,n] <- 0 } } } imp.matrix <- cbind(c(1:dim(imp.matrix)[2]),imp.matrix) kable(imp.matrix)
fcmdigraph(render.grid,render.imp,niter = 1, layout = "graphopt")
fcmdigraph(render.grid,render.imp,niter = 1, layout = "mds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.