Description
Create Interactive Linked Charts with Minimal Code.
Description
An easy-to-use tool to employ interactivity in every-day exploratory analysis. It contains a collection of most commonly used types of charts (such as scatter plots, line plots, heatmaps, bar charts), which can be linked to each other or to other interactive elements with just few lines of code.
README.md
rlc
This package is an R wrapper for the JavaScript linked-charts library. rlc is an easy to use instrument for interactive data visualisation. It allows to open interactive charts either in the RStudio Viewer or in the default browser window and on the fly process information about user's action (clicking, hovering with mouse, selecting points) in the running R session. This makes it easy to link the charts so that clicks on one of them change the state of the others.
Installation
rlc
can be installed from CRAN:
install.package("rlc")
You can also install the latest developmental version from GitHub:
install.packages("devtools")
devtools::install_github("anders-biostat/rlc")
Types of charts
Currently supported types of charts are:
lc_heatmap
- heatmaplc_scatter
- scatter plotlc_beeswarm
- bee swarm plot (either vertical or horizontal)lc_line
- lines, defined by sets of X and Y coordinateslc_path
- lines, defined by sets of X and Y coordinates in a given orderlc_abLine
- lines, defined by slope (a) and intercept (b) valueslc_vLine
- vertical lineslc_hLine
- horizontal lineslc_dens
- density plotlc_hist
- histogramlc_bars
- bar chart
Other elements
lc_colourSlider
- an additional element to interactively change a continuous colour scale of any other chart.lc_html
- customary HTML code to be inserted in the web page.lc_input
- five types of HTML<input>
tag: text, radio, checkbox, range and button.lc_image
- adds a static plot or any image to the web page.
Examples
To see how it works, have a look at these tutorials.