Description Usage Arguments Examples
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.
1 | rcpp_throwchart(before, after ,col, id, lwd, xlim, ylim, offSet, path)
|
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 |
1 2 3 4 5 6 7 8 | 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"))}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.