Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

TeeChart-for-R

TeeChart charting graphing plotting library for the R Language

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

TeeChart-for-R

Add Charts and Plots to your R projects

TeeChart for R is a free package that uses the TeeChart library.

The standard version includes most common chart styles, in 2D or 3D:

image

Tested with R 4.6.1 and RStudio in Windows and Ubuntu Linux.

Use R console, RGui or RStudio ide, set your default workspace or folder to this repository on your local machine, and run R:

r
> library("teechart")

Run a simple example to show a chart:

> source("demos/simple.R")

data <- c(10, 25, 15, 30, 22)
texts <- c("A", "B", "C", "D", "E")

chart <- TeeChart$new(y = data, texts = texts)
chart$show()

image

Infinite cosmetic configuration (fonts, colors, 2D or 3D etc)

r
data <- mtcars
data$names <- rownames(data)

chart <- TeeChart$new(data = data, x = data$hp, y = data$qsec, texts = data$names)
chart$set_title("Engine Performance")$show()

image

XYZ 3D with optional OpenGL GPU live charts

r
x <- seq(-3, 3, length.out = 30)
y <- seq(-3, 3, length.out = 30)

xyz <- expand.grid(x = x, y = y)
xyz$z <- sin(sqrt(xyz$x^2 + xyz$y^2))

chart <- TeeChart$new(x = x, y = y, z = xyz$z, commander = TRUE)
chart$set_title("XYZ 3D Surface")$show()

image

Fast OpenGL 3D rotation, zoom

https://github.com/user-attachments/assets/f14a2b28-9186-4447-91dc-730b351a0418

Same demos in R Studio ide:

image

A pro version (not yet available) provides extended support with many more styles and functionality like 3D charts:

image

image

Same TeeChart for R package running in RStudio Ubuntu Linux:

image