r - Issue with structure of data.frame for sunburstR plot -
hello,
i created dataframe below, based on example in sunburstr documentation.
column count 1: active 68764 2: inactive 73599 3: active-resident 68279 4: active-nonresident 485 5: inactive-resident 63378 6: inactive-nonresident 10221 7: active-resident-latin 55 8: active-resident-cyrlic 68224 9: active-nonresident-latin 465 10: active-nonresident-cyrlic 20 11: inactive-resident-latin 114 12: inactive-resident-cyrlic 63264 13: inactive-nonresident-latin 7915 14: inactive-nonresident-cyrlic 2306 the first column character, second integer.
however when try plot it, nothing.
sunburst(sunburst_data) any hints whats wrong structure of dataframe?
include leaf nodes in data frame...
df <- read.table(text = ' column count active-resident-latin 55 active-resident-cyrlic 68224 active-nonresident-latin 465 active-nonresident-cyrlic 20 inactive-resident-latin 114 inactive-resident-cyrlic 63264 inactive-nonresident-latin 7915 inactive-nonresident-cyrlic 2306 ') library(sunburstr) sunburst(df)
Comments
Post a Comment