If you provide filterCols you can select which columns to use as filters. If you provide sortCols you can select which columns to use to sort the items. You can also provide custom html templates to render the items.
# devtools::install_github("jpmarindiaz/isotope") library(isotope) d <- read.csv(system.file("data/candidatos.csv",package="isotope"), stringsAsFactors = FALSE) filterCols <- c("genero","profesiones", "niveldeestudios","talante", "pragmaticoideologico","visionpais") sortCols <- c("nombre","apoyosenadores","apoyorepresentantes") tpl <- ' <div style="border: 1px solid grey; margin:5px; padding:5px"> <div class="container"> <h3 class="nombre">{{nombre}}</h3> <div style="width:125px; height: 125px; margin:auto"> <img src={{foto}} class="circle" width="100px"/> </div> <p>Profesión: {{profesiones}}, Género: {{genero}},Nivel de estudios: {{niveldeestudios}}</p> <div class="apoyosenadores"><em>Apoyo Senadores:</em> {{apoyosenadores}}</div> <div class="apoyorepresentantes"><em>Apoyo Representantes:</em> {{apoyorepresentantes}}</div> </div> </div> ' isotope(d, filterCols = filterCols, sortCols = sortCols, lang = 'es', elemTpl = tpl, ncols=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.