{"id":13735183,"url":"https://github.com/timelyportfolio/eventdropR","last_synced_at":"2025-05-08T11:32:33.538Z","repository":{"id":141154436,"uuid":"62750994","full_name":"timelyportfolio/eventdropR","owner":"timelyportfolio","description":"EventDrops d3.js timeline as R htmlwidget","archived":false,"fork":false,"pushed_at":"2017-03-14T19:49:32.000Z","size":152,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-01-28T23:09:08.728Z","etag":null,"topics":["d3","d3js","d3v4","htmlwidgets","interactive","package","r","rstats","timeline"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timelyportfolio.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-06T20:24:30.000Z","updated_at":"2023-08-30T15:09:50.000Z","dependencies_parsed_at":"2024-01-06T13:58:46.334Z","dependency_job_id":"6a7a4433-8bfb-46c4-893d-73e8026dd9ce","html_url":"https://github.com/timelyportfolio/eventdropR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timelyportfolio%2FeventdropR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timelyportfolio%2FeventdropR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timelyportfolio%2FeventdropR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timelyportfolio%2FeventdropR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timelyportfolio","download_url":"https://codeload.github.com/timelyportfolio/eventdropR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224727173,"owners_count":17359532,"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":["d3","d3js","d3v4","htmlwidgets","interactive","package","r","rstats","timeline"],"created_at":"2024-08-03T03:01:03.896Z","updated_at":"2024-11-15T03:31:33.145Z","avatar_url":"https://github.com/timelyportfolio.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\nUnfinished `htmlwidget` wrapper for [`EventDrops`](https://github.com/marmelab/EventDrops)\n\n### Example\n\n```\n# install from github\n# devtools::install_github(\"timelyportfolio/eventdropR\")\n\nlibrary(eventdropR)\n\n# make some sample data\ndf \u003c- data.frame(\n  # random times 30 days plus or minus current time\n  date = Sys.time() + runif(1000, -30, 30) * 24 * 60 * 60,\n  # make up five groups\n  group = paste0(\"grp_\", LETTERS[runif(1000,1,5)]),\n  stringsAsFactors = FALSE\n)\n\n# defaults\n# date argument not needed since the date is in column date\neventdrop(\n  df,\n  name = \"group\" #if df column named \"name\" would not need\n)\n\n# demonstrate how to set some options\neventdrop(\n  df,\n  name = \"group\",\n  labelsWidth = 150,\n  hasBottomAxis = TRUE,\n  mouseover = htmlwidgets::JS('function(d){console.log(d)}')\n)\n\n# demonstrate how to use with shiny and get events\n#  can easily build this into our htmlwidget\ned \u003c- eventdrop(\n  df,\n  name = \"group\",\n  mouseover = htmlwidgets::JS(\n    '\nfunction(d){\n  console.log(d);\n  if(typeof(Shiny)!==\"undefined\") {\n    Shiny.onInputChange(\"eventdrop_click\", {data:d});\n  }\n}\n'\n  )\n)\n\ned\n\n# now integrate in simple shiny app\nlibrary(shiny)\nshinyApp(\n  ui = ed,\n  server = function(input, output, session){\n    observeEvent(input$eventdrop_click,{\n      str(input$eventdrop_click)\n    })\n  }\n)\n```\n\n### Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.\n","funding_links":[],"categories":["R","Visualization"],"sub_categories":["Time Series"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimelyportfolio%2FeventdropR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimelyportfolio%2FeventdropR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimelyportfolio%2FeventdropR/lists"}