Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.42 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.42 KB

rchartgpu

Lifecycle: experimental R-CMD-check

R Htmlwidget for ChartGPU : ChartGPU is a TypeScript charting library built on WebGPU for smooth, interactive rendering—especially when you have lots of data. See ChartGPU Examples for more.

Installation

You can install the development version of rchartgpu from GitHub with:

# install.packages("pak")
pak::pak("dreamRs/rchartgpu")

Line Chart

Here's a time series in hourly steps over 14 years (2012 - 2026), representing a total of 2,482,560 points (10 series of 248,256).

library(rchartgpu)
chartgpu(eco2mix) # for dataset see data-raw/eco2mix.R

rchartgpu eco2mix example

Scatter Chart

library(rchartgpu)
scattergpu(
  data = ggplot2::diamonds,
  mapping = aes(x = carat, y = price, color = clarity)
) |>
  chartgpu_theme_light(palette = scales::viridis_pal(option = "viridis")(8))

rchartgpu scatter example