{"id":23300908,"url":"https://github.com/shwilks/r3js","last_synced_at":"2025-07-25T11:08:57.039Z","repository":{"id":39514251,"uuid":"124564265","full_name":"shwilks/r3js","owner":"shwilks","description":"R package of functions linking R to the threejs 3D plotting engine","archived":false,"fork":false,"pushed_at":"2024-11-10T20:58:10.000Z","size":12007,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T21:32:11.013Z","etag":null,"topics":["3d-graphics","package","plotting","r"],"latest_commit_sha":null,"homepage":"https://shwilks.github.io/r3js/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shwilks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-09T16:17:11.000Z","updated_at":"2024-11-10T20:58:27.000Z","dependencies_parsed_at":"2022-08-29T16:01:09.025Z","dependency_job_id":null,"html_url":"https://github.com/shwilks/r3js","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/shwilks%2Fr3js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilks%2Fr3js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilks%2Fr3js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilks%2Fr3js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shwilks","download_url":"https://codeload.github.com/shwilks/r3js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230561363,"owners_count":18245381,"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":["3d-graphics","package","plotting","r"],"created_at":"2024-12-20T09:19:50.307Z","updated_at":"2024-12-20T09:19:50.969Z","avatar_url":"https://github.com/shwilks.png","language":"JavaScript","funding_links":[],"categories":["Visualization"],"sub_categories":["WebGL"],"readme":"\n# r3js\n\n\u003c!-- badges: start --\u003e\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/r3js)](https://cran.r-project.org/package=r3js)\n[![R-CMD-check](https://github.com/shwilks/r3js/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/shwilks/r3js/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/shwilks/r3js/branch/master/graph/badge.svg)](https://app.codecov.io/gh/shwilks/r3js?branch=master)\n\u003c!-- badges: end --\u003e\n\nThis is the project directory for the r3js, a package to provide R and javascript functions to allow WebGL-based 3D plotting in R using the [three.js](https://threejs.org) javascript library. Simple interactivity through roll-over highlighting and toggle buttons is also supported.\n\nPlots are built as html widgets, using the RStudio viewer panel to display the plots interactively. Plots can also be exported using the functions provided in the htmlwidgets package.\n\n## Installation\n\nYou can install tthe latest CRAN release with:\n\n```r\ninstall.packages(\"r3js\")\n```\n\nOr install the latest development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"shwilks/r3js\")\n```\n\n## Introduction\n\nGenerally, r3js works by generating an object containing the plotting data and then continuously updating it as new features are added to the plot (similar to plotly).  For a simple 3D scatterplot however, the `plot3js` function handles all of the plotting setup for you. Plotting syntax is intended to be similar to the base plotting functions in R, and that used in the RGL package.\n\nSeveral ways to add interactivity to plots are currently supported, namely labels, highlighting on mouse roll-over, and toggle buttons.\n\nUsing the possibilities together you can create plots like the one below.\n\n\u003ca href=\"https://shwilks.github.io/r3js/reference/figures/README-ablandscape.html\"\u003e\u003cimg src=\"https://shwilks.github.io/r3js/reference/figures/README-ablandscape.png\" style=\"margin-top:14px; width:100%; height:400px; border:solid 2px #eeeeee;\"/\u003e\u003c/a\u003e\n\n## Learn more\nFor a basic introduction to plotting and using the different types of interactivity see the article [Getting started](https://shwilks.github.io/r3js/articles/getting-started.html). For a more complex example using plot element groupings to link interaction with one plot element to changes in others see the article [Grouping plot elements](https://shwilks.github.io/r3js/articles/using-groupings.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilks%2Fr3js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshwilks%2Fr3js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilks%2Fr3js/lists"}