This package is an R wrapper fot 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, mousehovering, 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.
To install rlc from GitHub use the following commands:
install.packages("devtools")
devtools::install_github("anders-biostat/rlc")
Currently supported types of charts are:
lc_heatmap
- heatmaplc_scatter
- scatter plotlc_beeswarm
- beeswarm plot (either vertical or horizontal)lc_line
- lines, defined by sets of X and Y coordinateslc_abLine
- lines, defined by slope (a) and intercept (b) valueslc_vLine
- vertical lineslc_hLine
- horizontal lineslc_dens
- density plotlc_hist
- histogramlc_bars
- barchart
lc_colourSlider
- an additional element that can interactively change a continuous colour scale of any other chartlc_html
- customary HTML code to be inserted in the web page
To see how it works, have a look at this tutorial.