TeeChart for R is a free package that uses the TeeChart library.
The standard version includes most common chart styles:
Tested with R 4.6.1
Use R console, RGui or RStudio ide, set your default workspace or folder to this repository on your local machine, and run 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()
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()
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()
TeeChart_xyz_Surface_OpenGL.mp4
A pro version (not yet available) provides extended support with many more styles and functionality like 3D charts: