rcpp_throwchart {DataViz}R Documentation

~ C++ called function: rcpp_throwchart ~

Description

This function takes the inputs from throwchart, and writes the data in Json array, then this function calls a windows cmd function to open an index.html in the extdata.

Usage

rcpp_throwchart(before, after ,col, id, lwd, xlim, ylim, offSet, path)	

Arguments

before

A number column

after

A number column

col

A hex code colour colum has to be format "#000"

id

An id has to be string

lwd

A number for the line width best between 1-5)

xlim

[numeric]: 2 value colum with x limits.

ylim

[numeric]: 2 value colum with y limits.

offSet

[integer]: Single value for the graph offset.

path

The path for the library

Examples

 if(interactive()){
 before = tibble(c(1,2))
 after = tibble(c(2,8))
 col = tibble(c("#000","#F82"))
 id = tibble(c("",""))
 lwd = tibble(c(1,5))
 xlim = tibble(c(0,0))
 rcpp_throwchart(before,after,col,id,lwd,xlim,0,path.package("DataViz"))}

[Package DataViz version 0.2.8 Index]