https://github.com/johncoene/acharts
📦 Make Virtual Reality Charts with R
https://github.com/johncoene/acharts
a-frame rstats
Last synced: about 1 year ago
JSON representation
📦 Make Virtual Reality Charts with R
- Host: GitHub
- URL: https://github.com/johncoene/acharts
- Owner: JohnCoene
- License: other
- Created: 2018-08-21T14:04:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T14:44:46.000Z (almost 8 years ago)
- Last Synced: 2025-01-26T14:48:38.305Z (over 1 year ago)
- Topics: a-frame, rstats
- Language: R
- Homepage: http://acharts.john-coene.com/
- Size: 342 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# acharts
Make Virtual Reality Charts with R.
## Installation
``` r
# install.packages("devtools")
devtools::install_github("JohnCoene/acharts")
```
## Example
Scatter and bar
``` r
library(aframer)
library(acharts)
COL <- round(runif(20, 1, 5))
HEIGHT <- runif(20, 1, 10)
scatter <- data.frame(
x = runif(20, 1, 5),
y = runif(20, 5, 10),
z = runif(20, 1, 20),
size = runif(20, .1, .4),
color = COL
)
bar <- data.frame(
x = runif(20, 1, 5),
y = HEIGHT - (HEIGHT/2),
z = runif(20, 1, 20),
height = HEIGHT,
color = COL
)
aCharts$
new()$
insert(
a_entity(
a_camera(position = "5 0 0")
)
)$
scatter(
data = scatter,
x = x,
y = y,
z = z,
size = size,
color = color
)$
bar(
data = bar,
x = x,
y = y,
z = z,
height = height,
color = color
)$
plot()$
browse()
```