Example from: https://github.com/armish/coffeewheel
#devtools::install_github("armish/coffeewheel")
library("coffeewheel")
coffeewheel(sampleWheelData, width=500, height=500, partitionAttribute="value")
sampleWheelData
## [[1]]
## [[1]]$name
## [1] "R"
##
## [[1]]$children
## [[1]]$children[[1]]
## [[1]]$children[[1]]$name
## [1] "R_1"
##
## [[1]]$children[[1]]$colour
## [1] "#110000"
##
##
## [[1]]$children[[2]]
## [[1]]$children[[2]]$name
## [1] "R_3"
##
## [[1]]$children[[2]]$colour
## [1] "#330000"
##
##
## [[1]]$children[[3]]
## [[1]]$children[[3]]$name
## [1] "R_5"
##
## [[1]]$children[[3]]$colour
## [1] "#550000"
##
##
## [[1]]$children[[4]]
## [[1]]$children[[4]]$name
## [1] "R_7"
##
## [[1]]$children[[4]]$colour
## [1] "#770000"
##
##
## [[1]]$children[[5]]
## [[1]]$children[[5]]$name
## [1] "R_9"
##
## [[1]]$children[[5]]$colour
## [1] "#990000"
##
##
## [[1]]$children[[6]]
## [[1]]$children[[6]]$name
## [1] "R_b"
##
## [[1]]$children[[6]]$colour
## [1] "#bb0000"
##
##
## [[1]]$children[[7]]
## [[1]]$children[[7]]$name
## [1] "R_d"
##
## [[1]]$children[[7]]$colour
## [1] "#dd0000"
##
##
## [[1]]$children[[8]]
## [[1]]$children[[8]]$name
## [1] "R_f"
##
## [[1]]$children[[8]]$colour
## [1] "#ff0000"
##
##
##
##
## [[2]]
## [[2]]$name
## [1] "G"
##
## [[2]]$children
## [[2]]$children[[1]]
## [[2]]$children[[1]]$name
## [1] "G_1"
##
## [[2]]$children[[1]]$colour
## [1] "#001100"
##
##
## [[2]]$children[[2]]
## [[2]]$children[[2]]$name
## [1] "G_3"
##
## [[2]]$children[[2]]$colour
## [1] "#003300"
##
##
## [[2]]$children[[3]]
## [[2]]$children[[3]]$name
## [1] "G_5"
##
## [[2]]$children[[3]]$colour
## [1] "#005500"
##
##
## [[2]]$children[[4]]
## [[2]]$children[[4]]$name
## [1] "G_7"
##
## [[2]]$children[[4]]$colour
## [1] "#007700"
##
##
## [[2]]$children[[5]]
## [[2]]$children[[5]]$name
## [1] "G_9"
##
## [[2]]$children[[5]]$colour
## [1] "#009900"
##
##
## [[2]]$children[[6]]
## [[2]]$children[[6]]$name
## [1] "G_b"
##
## [[2]]$children[[6]]$colour
## [1] "#00bb00"
##
##
## [[2]]$children[[7]]
## [[2]]$children[[7]]$name
## [1] "G_d"
##
## [[2]]$children[[7]]$colour
## [1] "#00dd00"
##
##
## [[2]]$children[[8]]
## [[2]]$children[[8]]$name
## [1] "G_f"
##
## [[2]]$children[[8]]$colour
## [1] "#00ff00"
##
##
##
##
## [[3]]
## [[3]]$name
## [1] "B"
##
## [[3]]$children
## [[3]]$children[[1]]
## [[3]]$children[[1]]$name
## [1] "B_1"
##
## [[3]]$children[[1]]$colour
## [1] "#000011"
##
##
## [[3]]$children[[2]]
## [[3]]$children[[2]]$name
## [1] "B_3"
##
## [[3]]$children[[2]]$colour
## [1] "#000033"
##
##
## [[3]]$children[[3]]
## [[3]]$children[[3]]$name
## [1] "B_5"
##
## [[3]]$children[[3]]$colour
## [1] "#000055"
##
##
## [[3]]$children[[4]]
## [[3]]$children[[4]]$name
## [1] "B_7"
##
## [[3]]$children[[4]]$colour
## [1] "#000077"
##
##
## [[3]]$children[[5]]
## [[3]]$children[[5]]$name
## [1] "B_9"
##
## [[3]]$children[[5]]$colour
## [1] "#000099"
##
##
## [[3]]$children[[6]]
## [[3]]$children[[6]]$name
## [1] "B_b"
##
## [[3]]$children[[6]]$colour
## [1] "#0000bb"
##
##
## [[3]]$children[[7]]
## [[3]]$children[[7]]$name
## [1] "B_d"
##
## [[3]]$children[[7]]$colour
## [1] "#0000dd"
##
##
## [[3]]$children[[8]]
## [[3]]$children[[8]]$name
## [1] "B_f"
##
## [[3]]$children[[8]]$colour
## [1] "#0000ff"