GithubHelp home page GithubHelp logo

arction / lc4r Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 2.08 MB

An open-source wrapper that brings the highest performance JavaScript charts into R

License: MIT License

R 30.45% JavaScript 69.55%

lc4r's Introduction

Features

Scatter charts

  • Fully interactive (zooming, panning, data cursor)
  • Up to 75 million (75 000 000) data points
  • circle, square and triangle markers
  • Supports individual point sizes and transparent points

Interactive R Scatter Chart

Interactive R Bubble Chart

Line charts

  • Fully interactive (zooming, panning, data cursor)
  • Up to 500 million (500 000 000) data points

Interactive R Line Chart

Heatmap charts

  • Fully interactive (zooming, panning, data cursor)
  • Up to 5.6 billion (5 600 000 000) data points
  • Supports R color palettes (native, RColorBrewer, Viridis)
  • Automatic bilinear color interpolation based on adjacent cell values

Interactive R Heatmap Chart

Surface charts

  • Fully interactive (zooming, panning, rotation)
  • Up to 2 billion (2 000 000 000) data points
  • Supports R color palettes (native, RColorBrewer, Viridis)
    • Currently only coloring by Y but could be extended to color by separate data set
  • Automatic bilinear color interpolation based on adjacent cell values
  • Beautiful Phong shading for better depth perception

Interactive R Surface Chart

Map charts

  • Dynamically coloring countries or other map regions using ISO_A3 codes or names.
    • Supports R color palettes (native, RColorBrewer, Viridis)
  • Can be combined with other 2D features such as scatter, bubbles, lines, etc.

R Map Countries Color Chart

R Map Scatter Plot Chart

Installation and usage

The latest version of lc4r can be installed via R devtools.

If you don't have devtools installed, do that with the following command in R console:

install.packages("devtools")

Install the latest lc4r version with following R console command:

devtools::install_github("Arction/lc4r")

Usage

Example, basic scatter chart usage

library(lc4r)

data <- mtcars[,c('wt','mpg')]
print(lc4r(lcSeries(
  type = 'scatter',
  x = data$wt,
  y = data$mpg
)))

You can find more example R scripts right here in GitHub

Apart from example scripts, the best place to learn about package usage is to view the package documentation in RStudio:

RStudio lc4r documentation

About LightningChart JS

LightningChart JS is the proven performance leader in the field of JavaScript data visualization. We are changing the capabilities of web data visualization by providing high-performance charts with real-time capabilities and optimized CPU usage.

You can learn more about the product on our web site lightningchart.com.

Please note that LightningChart JS is not allowed to be used commercially without purchasing a license.

To see our charts in action, you can check our Interactive Examples gallery. At the time of writing we have a grand total of 112 different chart examples covering a wide variety of fields and use cases, such as:

  • Trading
  • Research
  • Medicine
  • Statistics
  • Business and Finance
  • Geographical data visualization
  • ...and a stunning amount of general data visualization examples that are not tied to any particular field.

Things to add

There are countless features in LightningChart JS that could be added into the R package. Here's some honorable mentions which we think would be especially interesting:

  • Color palettes for line charts
  • Color palettes for scatter charts
  • Threshold indicators
  • Band indicators
  • Area series
  • Area Range series
  • Candlestick series
  • Polar charts

Contributing

Anyone is welcome to contribute towards improving lc4r by

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.