Marshhhhh / first

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RProof

Marshhhhh opened this issue · comments

library(prof.tree)
pr <- prof.tree(tmp)
print(pr, limit = NULL)

https://habrahabr.ru/company/infopulse/blog/303684/

cols <- colorRampPalette(c("green", "red"))(101)
SetNodeStyle(pr,
style = "filled,rounded",
shape = "box",
fontname = "helvetica",
fillcolor = function(node) cols[round(node$percent * 100) + 1],
tooltip = function(node) node$real)

plot(pr)