LightningR6Class with methods for communication with lightning-viz server.
R6Class object.serveraddresssessionidurlautoopennotebooknew(serveraddress)serveraddress as address of the server object is connecting to.sethost(serveraddress)serveraddress.createsession(sessionname = "")sessionname.usesession(sessionid)sessionid parameter.openviz(vizid = NA)vizid parameter is given, it opens a visualization with given id instead.enableautoopening()disableautoopening()line(series, index = NA, color = NA, label = NA, size = NA, xaxis = NA, yaxis = NA, logScaleX = "false", logScaleY = "false")series.scatter(x, y, color = NA, label = NA, size = NA, alpha = NA, xaxis = NA, yaxis = NA)x, y.linestacked(series, color = NA, label = NA, size = NA)series, with an ability to hide and show every one of them.force(matrix, color = NA, label = NA, size = NA)matrix.graph(x, y, matrix, color = NA, label = NA, size = NA)x, y vectors, with connection given in matrix connectivity matrix.map(regions, weights, colormap)regions with weights given in weights vector and with colormap color (string from colorbrewer).graphbundled(x, y, matrix, color = NA, label = NA, size = NA)x, y vectors, with connection given in matrix connectivity matrix. Lines on this graph are stacked a bit more than in the graph function.matrix(matrix, colormap)matrix parameter, with its contents used as weights for the colormap given in colormap (string from colorbrewer).adjacency(matrix, label = NA)matrix parameter.scatterline(x, y, t, color = NA, label = NA, size = NA)x, y and assignes a line plot to every point on that plot. Each line is given as a row in t matrix.scatter3(x, y, z, color = NA, label = NA, size = NA, alpha = NA)x, y, z.image(imgpath)imgpath to the server and creates a visualisation of it.gallery(imgpathvector)imgpathvector to the server and creates a gallery of these images.Lightning$new("http://localhost:3000/")
Lightning$new("http://your-lightning.herokuapp.com/")
Run the code above in your browser using DataLab