Skip to contents

An HTTP/WebSocket graphics device for R. Serves plots asynchronously and includes an interactive web-based plot viewer. Built to embed live R graphics in IDEs and other applications.

Powered by unigd.

Features

  • Fast, asynchronous plot rendering
  • Interactive plot viewer with history and resizing
  • Multiple concurrent clients
  • Export to SVG, PNG, PDF, EPS, and more
  • Stateless HTTP/WebSocket API

Demo

httpgd demo showing interactive plot viewer
httpgd demo showing interactive plot viewer

Installation

Install from CRAN:

Or install the development version from GitHub:

remotes::install_github("nx10/httpgd")

See system requirements for details.

Contributing

httpgd is written in C++, R, and TypeScript. Contributions of any kind are welcome.

License

Licensed under GPL v2.0. Webserver based on CrowCpp/Crow. Vendored license copies are in ./inst/licenses.