{"id":13858343,"url":"https://github.com/lineupjs/lineup_htmlwidget","last_synced_at":"2025-04-15T01:24:49.548Z","repository":{"id":56862668,"uuid":"79809408","full_name":"lineupjs/lineup_htmlwidget","owner":"lineupjs","description":"HTMLWidget wrapper of LineUp for Visual Analysis of Multi-Attribute Rankings","archived":false,"fork":false,"pushed_at":"2022-09-11T18:46:08.000Z","size":3492,"stargazers_count":54,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T13:21:16.524Z","etag":null,"topics":["crosstalk","htmlwidget","htmlwidgets","lineup","r","ranking","shiny"],"latest_commit_sha":null,"homepage":"https://lineup.js.org","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lineupjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-23T14:01:53.000Z","updated_at":"2025-03-22T11:17:46.000Z","dependencies_parsed_at":"2022-09-03T15:12:23.570Z","dependency_job_id":null,"html_url":"https://github.com/lineupjs/lineup_htmlwidget","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lineupjs%2Flineup_htmlwidget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lineupjs%2Flineup_htmlwidget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lineupjs%2Flineup_htmlwidget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lineupjs%2Flineup_htmlwidget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lineupjs","download_url":"https://codeload.github.com/lineupjs/lineup_htmlwidget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986987,"owners_count":21194158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crosstalk","htmlwidget","htmlwidgets","lineup","r","ranking","shiny"],"created_at":"2024-08-05T03:02:05.092Z","updated_at":"2025-04-15T01:24:49.531Z","avatar_url":"https://github.com/lineupjs.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"LineUp.js as HTMLWidget\n=======================\n\n[![License: MIT][mit-image]][mit-url] [![Github Actions][github-actions-image]][github-actions-url]\n\nLineUp is an interactive technique designed to create, visualize and explore rankings of items based on a set of heterogeneous attributes.\nThis is a [HTMLWidget](http://www.htmlwidgets.org/) wrapper around the JavaScript library [LineUp.js](https://github.com/lineupjs/lineupjs). Details about the LineUp visualization technique can be found at [ https://jku-vds-lab.at/tools/lineup/](https://jku-vds-lab.at/tools/lineup/).\n\nIt can be used within standalone [R Shiny](https://shiny.rstudio.com/) apps or [R Markdown](https://rmarkdown.rstudio.com/) files.\n[Crosstalk](https://rstudio.github.io/crosstalk/) is supported for synching selections and filtering among widgets.\n\nInstallation\n------------\n\n```R\ninstall.packages('lineupjs')\nlibrary(lineupjs)\n```\n\nExamples\n--------\n\n```R\nlineup(mtcars)\n```\n\n```R\nlineup(iris)\n```\n\n![iris output](https://user-images.githubusercontent.com/4129778/34919941-fec50232-f96a-11e7-95be-9eefb213e3d6.png)\n\n\nAdvanced Example\n----------------\n\n```R\nlineup(iris,\n  ranking=lineupRanking(columns=c('_*', '*', 'impose'),\n                        sortBy=c('Sepal_Length:desc'), groupBy=c('Species'),\n                        impose=list(type='impose', column='Sepal_Length', categoricalColumn='Species')))\n```\n\n![iris advanced output](https://user-images.githubusercontent.com/4129778/48187839-898c0d00-e33c-11e8-9d4a-360bc35741f4.png)\n\n\nCrosstalk Example\n-------------\n\n```R\ndevtools::install_github(\"jcheng5/d3scatter\")\nlibrary(d3scatter)\nlibrary(crosstalk)\n\nshared_iris = SharedData$new(iris)\n\nd3scatter(shared_iris, ~Petal.Length, ~Petal.Width, ~Species, width=\"100%\")\n```\n\n```R\nlineup(shared_iris, width=\"100%\")\n```\n\n![crosstalk output](https://user-images.githubusercontent.com/4129778/34919938-fb7166de-f96a-11e7-8ea1-443e0923b160.png)\n\n\n\nShiny Example\n-------------\n```R\nlibrary(shiny)\nlibrary(crosstalk)\nlibrary(lineupjs)\nlibrary(d3scatter)\n\n# Define UI for application that draws a histogram\nui \u003c- fluidPage(\n  titlePanel(\"LineUp Shiny Example\"),\n\n  fluidRow(\n    column(5, d3scatterOutput(\"scatter1\")),\n    column(7, lineupOutput(\"lineup1\"))\n  )\n)\n\n# Define server logic required to draw a histogram\nserver \u003c- function(input, output) {\n  shared_iris \u003c- SharedData$new(iris)\n\n  output$scatter1 \u003c- renderD3scatter({\n    d3scatter(shared_iris, ~Petal.Length, ~Petal.Width, ~Species, width = \"100%\")\n  })\n\n  output$lineup1 \u003c- renderLineup({\n    lineup(shared_iris, width = \"100%\")\n  })\n}\n\n# Run the application\nshinyApp(ui = ui, server = server)\n```\n\nHint:\n\nIn case you see scrollbars in each cell it is because of the font the cells are too narrow, you can specify a larger row height using\n\n```R\nlineup(iris, options=list(rowHeight=20))\n```\n\nAuthors\n-------\n\n * Samuel Gratzl (@sgratzl)\n * Datavisyn GmbH (@datavisyn)\n\n\n[mit-image]: https://img.shields.io/badge/License-MIT-yellow.svg\n[mit-url]: https://opensource.org/licenses/MIT\n[github-actions-image]: https://github.com/lineupjs/lineup_htmlwidget/workflows/ci/badge.svg\n[github-actions-url]: https://github.com/lineupjs/lineup_htmlwidget/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flineupjs%2Flineup_htmlwidget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flineupjs%2Flineup_htmlwidget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flineupjs%2Flineup_htmlwidget/lists"}